Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求指点,我连快速开始都跑不动。。 #39

Open
ZainXiao opened this issue Dec 6, 2023 · 9 comments
Open

求指点,我连快速开始都跑不动。。 #39

ZainXiao opened this issue Dec 6, 2023 · 9 comments

Comments

@ZainXiao
Copy link

ZainXiao commented Dec 6, 2023

image image
@ZainXiao
Copy link
Author

ZainXiao commented Dec 6, 2023

我只是简单的配置了数据库,在测试用例上resource引入

@xutengx
Copy link
Member

xutengx commented Dec 7, 2023

可以提供下具体的代码, 以及依赖

@ZainXiao
Copy link
Author

ZainXiao commented Dec 7, 2023

image
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.1.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>demoorm</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demoorm</name>
    <description>demoorm</description>
    <properties>
        <java.version>17</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.github.gaarason.database-all</groupId>
            <artifactId>database-spring-boot-starter</artifactId>
             <version>4.9.1</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.2.18</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <image>
                        <builder>paketobuildpacks/builder-jammy-base:latest</builder>
                    </image>
                    <excludes>
                        <exclude>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

</project>

@xutengx
Copy link
Member

xutengx commented Dec 7, 2023

我本地試下, 是ok的, 供你參考下
20231207104008907

@xutengx
Copy link
Member

xutengx commented Dec 7, 2023

哦, 你用的Spring 3, 我試了下,有復現你這個狀況,
我看看問題在哪裡
你可以用Spring 2先體驗下.

@ZainXiao
Copy link
Author

ZainXiao commented Dec 7, 2023

加油 看好你

@xutengx
Copy link
Member

xutengx commented Dec 7, 2023

嗯 , 在 5.0.0 版本中, 增加了对 springboot3 以及 jdk17 的支持.

@ZainXiao
Copy link
Author

ZainXiao commented Dec 8, 2023

image 这是运行自动生成 model 和 entity 代码时报的错,这个项目是不是还不兼容 springboot3

@xutengx
Copy link
Member

xutengx commented Dec 8, 2023

嗯 , 在 5.1.0 版本中, 优化了下生成代码的功能, 增加了兼容性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants