NoSuchBeanDefinitionException 另类解决方法

maven依赖顺序问题,修改一下依赖顺序

记住这个顺序

    <dependencies>
        <dependency>
            <groupId>com.shangchaingroupId>
            <artifactId>shangchain-file-storageartifactId>
        dependency>
        <dependency>
            <groupId>com.shangchaingroupId>
            <artifactId>shangchain-quartzartifactId>
        dependency>
    <dependencies>
Action:

Consider defining a bean of type 'xxxService' in your configuration.

Disconnected from the target VM, address: '127.0.0.1:55622', transport: 'socket'

修改一下顺序

    <dependencies>
        <dependency>
            <groupId>com.shangchaingroupId>
            <artifactId>shangchain-quartzartifactId>
        dependency>
        <dependency>
            <groupId>com.shangchaingroupId>
            <artifactId>shangchain-file-storageartifactId>
        dependency>
    <dependencies>
2022-05-07 18:20:49.115  INFO 19436 --- [           main] c.s.webclient.SCWebClientApplication     : 启动项目启动完成,耗时:30261 毫秒!

就这么简单,应该是maven的加载顺序问题

你可能感兴趣的:(JAVA学习,maven,java,开发语言)