0
Follow
0
View

What can I do if an error occurs in the springboot project?

dhl7777 注册会员
2023-02-28 18:06

< a > @ Component annotation check < / a >

diss33 注册会员
2023-02-28 18:06

Look at the tomcat version

dengfangjian 注册会员
2023-02-28 18:06

Make sure your maven environment is OK.
Find the class that is reporting the error. A global search for
should show that there are two packages with the same class.
Determine which package you are using by version or framework.
Eliminate the other one.

Another possibility is that this project has packaged external dependencies, that is, there is a package that is not managed by maven, you can delete it in the lib on the left of idea. There's a minus button

anxiaoli520528 注册会员
2023-02-28 18:06

Question, I will solve this problem for you, if it helps, also hope to adopt, click on the right side of the answer can be adopted.

Method 1: clean up your maven dependencies first.
After adding maven helper plugin, right-click →run maven→clean

img

Method 2:
The package you imported has a version conflict problem. I suggest you check, I suggest directly remove the specified version version, the system will automatically download compatible packages in

        
        <dependency>
            <groupId>mysqlgroupId>
            <artifactId>mysql-connector-javaartifactId>
            <scope>runtimescope>
        dependency>
        
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-jdbcartifactId>
        dependency>
        
        <dependency>
            <groupId>com.baomidougroupId>
            <artifactId>mybatis-plus-boot-starterartifactId>
            <version>3.2.0version>
        dependency>
        
        <dependency>
            <groupId>com.baomidougroupId>
            <artifactId>mybatis-plus-generatorartifactId>
            <version>3.2.0version>
        dependency>


    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
            plugin>
        plugins>
    build>
dowei2008 注册会员
2023-02-28 18:06

Please provide code and error, copy

jt285088419 注册会员
2023-02-28 18:06

Dear, you post the code

About the Author

Question Info

Publish Time
2023-02-28 18:06
Update Time
2023-02-28 18:06