求救。。报错。。查不出来: java.lang.IncompatibleClassChangeError: null

bean创建的多了就启动不起来了,别人可以,我的就不许,一直报创建bean错误,也没什么特别的错误提示,查不到。错误如下:求解答

[2021-11-29 19:10:54.029] [INFO ] [org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator] [Line:52 ] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
[2021-11-29 19:10:54.036] [INFO ] [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] [Line:434] - Initialized JPA EntityManagerFactory for persistence unit 'default'
[2021-11-29 19:10:54.937] [WARN ] [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] [Line:596] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'quoteRopeService': Unsatisfied dependency expressed through field 'quoteRopeDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteRopeDao' defined in com.soz.aps.dao.quote.QuoteRopeDao defined in @EnableJpaRepositories declared on ApsApplication: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
[2021-11-29 19:10:54.942] [INFO ] [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] [Line:648] - Closing JPA EntityManagerFactory for persistence unit 'default'
[2021-11-29 19:10:54.944] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:350] - HikariPool-1 - Shutdown initiated...
[2021-11-29 19:10:54.950] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:352] - HikariPool-1 - Shutdown completed.
[2021-11-29 19:10:54.951] [INFO ] [org.apache.catalina.core.StandardService] [Line:173] - Stopping service [Tomcat]
[2021-11-29 19:10:54.958] [INFO ] [org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener] [Line:136] - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[2021-11-29 19:10:54.974] [ERROR] [org.springframework.boot.SpringApplication] [Line:856] - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'quoteRopeService': Unsatisfied dependency expressed through field 'quoteRopeDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteRopeDao' defined in com.soz.aps.dao.quote.QuoteRopeDao defined in @EnableJpaRepositories declared on ApsApplication: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:321)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$193/1179792105.getObject(Unknown Source)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298)
	at com.soz.aps.ApsApplication.main(ApsApplication.java:22)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'quoteRopeService': Unsatisfied dependency expressed through field 'quoteRopeDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteRopeDao' defined in com.soz.aps.dao.quote.QuoteRopeDao defined in @EnableJpaRepositories declared on ApsApplication: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$193/1179792105.getObject(Unknown Source)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeanByName(AbstractAutowireCapableBeanFactory.java:468)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:527)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:497)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:650)
	at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:229)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:318)
	... 19 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quoteRopeDao' defined in com.soz.aps.dao.quote.QuoteRopeDao defined in @EnableJpaRepositories declared on ApsApplication: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$193/1179792105.getObject(Unknown Source)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
	... 36 common frames omitted
Caused by: java.lang.IncompatibleClassChangeError: null
	at org.springframework.data.jpa.util.JpaMetamodel.lambda$isSingleIdAttribute$4(JpaMetamodel.java:94)
	at org.springframework.data.jpa.util.JpaMetamodel$$Lambda$696/1133251247.test(Unknown Source)
	at java.util.Optional.filter(Optional.java:178)
	at org.springframework.data.jpa.util.JpaMetamodel.isSingleIdAttribute(JpaMetamodel.java:94)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl.lambda$new$2(JpaPersistentPropertyImpl.java:110)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl$$Lambda$689/1060041730.get(Unknown Source)
	at org.springframework.data.util.Lazy.getNullable(Lazy.java:230)
	at org.springframework.data.util.Lazy.get(Lazy.java:114)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl.isIdProperty(JpaPersistentPropertyImpl.java:141)
	at org.springframework.data.jpa.mapping.JpaPersistentEntityImpl.returnPropertyIfBetterIdPropertyCandidateOrNull(JpaPersistentEntityImpl.java:72)
	at org.springframework.data.jpa.mapping.JpaPersistentEntityImpl.returnPropertyIfBetterIdPropertyCandidateOrNull(JpaPersistentEntityImpl.java:39)
	at org.springframework.data.mapping.model.BasicPersistentEntity.addPersistentProperty(BasicPersistentEntity.java:224)
	at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.createAndRegisterProperty(AbstractMappingContext.java:554)
	at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:522)
	at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:708)
	at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:385)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:259)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:202)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:86)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:324)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport$$Lambda$636/1672843252.accept(Unknown Source)
	at java.util.Optional.ifPresent(Optional.java:159)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:324)
	at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:144)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
	... 47 common frames omitted

Process finished with exit code 1

你这是根异常吗?

我也没遇到过这个问题,查了一下资料。应该是类冲突导致的。

每次启动,都是bean创建失败,但是可能每次不是同一个bean出错。别人的能行,放我这里就不行了。bean创建的有很多,是这原因吗?之前bean少的时候都没问题,注释掉某个bean也不行,注释掉一些bean就能跑

是不是jar包版本冲突啊, 你new的bean可能不同的地方用了不同的版本

什么意思都是@autowire和@service注入的,maven本地仓库我也都删了从新下的。这个怎么看

你把完整的pom文件复制出来看看。

<?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>2.4.0</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.soz</groupId>
    <artifactId>aps</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>aps</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-freemarker</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <!-- zyp加——分页———-->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.4</version>
        </dependency>
        <!--end-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.11</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!--监控sql日志-->
        <dependency>
            <groupId>org.bgee.log4jdbc-log4j2</groupId>
            <artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
            <version>1.16</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

你把 lombok 和 commons-lang3 的版本号去掉。不要自己声明。

还是报同一个类型的错误

D:\java8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\idea\IntelliJ IDEA 2020.1.4\lib\idea_rt.jar=62132:D:\idea\IntelliJ IDEA 2020.1.4\bin" -Dfile.encoding=UTF-8 -classpath D:\java8\jre\lib\charsets.jar;D:\java8\jre\lib\deploy.jar;D:\java8\jre\lib\ext\access-bridge-64.jar;D:\java8\jre\lib\ext\cldrdata.jar;D:\java8\jre\lib\ext\dnsns.jar;D:\java8\jre\lib\ext\jaccess.jar;D:\java8\jre\lib\ext\jfxrt.jar;D:\java8\jre\lib\ext\localedata.jar;D:\java8\jre\lib\ext\nashorn.jar;D:\java8\jre\lib\ext\sunec.jar;D:\java8\jre\lib\ext\sunjce_provider.jar;D:\java8\jre\lib\ext\sunmscapi.jar;D:\java8\jre\lib\ext\sunpkcs11.jar;D:\java8\jre\lib\ext\zipfs.jar;D:\java8\jre\lib\javaws.jar;D:\java8\jre\lib\jce.jar;D:\java8\jre\lib\jfr.jar;D:\java8\jre\lib\jfxswt.jar;D:\java8\jre\lib\jsse.jar;D:\java8\jre\lib\management-agent.jar;D:\java8\jre\lib\plugin.jar;D:\java8\jre\lib\resources.jar;D:\java8\jre\lib\rt.jar;D:\ideajob\备份\aps-wire-rope_system\aps-wire-rope_system\target\classes;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-freemarker\2.4.0\spring-boot-starter-freemarker-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter\2.4.0\spring-boot-starter-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot\2.4.0\spring-boot-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.0\spring-boot-autoconfigure-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.4.0\spring-boot-starter-logging-2.4.0.jar;C:\Users\guoxing\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\guoxing\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\guoxing\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\guoxing\.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\guoxing\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\guoxing\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\guoxing\.m2\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;C:\Users\guoxing\.m2\repository\org\freemarker\freemarker\2.3.30\freemarker-2.3.30.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-context-support\5.3.1\spring-context-support-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-beans\5.3.1\spring-beans-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-context\5.3.1\spring-context-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.4.0\spring-boot-starter-data-jpa-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.4.0\spring-boot-starter-aop-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-aop\5.3.1\spring-aop-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.0\spring-boot-starter-jdbc-2.4.0.jar;C:\Users\guoxing\.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-jdbc\5.3.1\spring-jdbc-5.3.1.jar;C:\Users\guoxing\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\guoxing\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\guoxing\.m2\repository\org\hibernate\hibernate-core\5.4.23.Final\hibernate-core-5.4.23.Final.jar;C:\Users\guoxing\.m2\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;C:\Users\guoxing\.m2\repository\org\javassist\javassist\3.24.0-GA\javassist-3.24.0-GA.jar;C:\Users\guoxing\.m2\repository\net\bytebuddy\byte-buddy\1.10.18\byte-buddy-1.10.18.jar;C:\Users\guoxing\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\guoxing\.m2\repository\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\guoxing\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\guoxing\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\guoxing\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;C:\Users\guoxing\.m2\repository\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;C:\Users\guoxing\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;C:\Users\guoxing\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\guoxing\.m2\repository\org\springframework\data\spring-data-jpa\2.4.1\spring-data-jpa-2.4.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\data\spring-data-commons\2.4.1\spring-data-commons-2.4.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-orm\5.3.1\spring-orm-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-tx\5.3.1\spring-tx-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-aspects\5.3.1\spring-aspects-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\projectlombok\lombok\1.18.16\lombok-1.18.16.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.4.0\spring-boot-starter-web-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.4.0\spring-boot-starter-json-2.4.0.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;C:\Users\guoxing\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.0\spring-boot-starter-tomcat-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.39\tomcat-embed-core-9.0.39.jar;C:\Users\guoxing\.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\guoxing\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.39\tomcat-embed-websocket-9.0.39.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-web\5.3.1\spring-web-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-webmvc\5.3.1\spring-webmvc-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-expression\5.3.1\spring-expression-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar;C:\Users\guoxing\.m2\repository\mysql\mysql-connector-java\8.0.22\mysql-connector-java-8.0.22.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-starter-test\2.4.0\spring-boot-starter-test-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-test\2.4.0\spring-boot-test-2.4.0.jar;C:\Users\guoxing\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.4.0\spring-boot-test-autoconfigure-2.4.0.jar;C:\Users\guoxing\.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;C:\Users\guoxing\.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;C:\Users\guoxing\.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;C:\Users\guoxing\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\guoxing\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\guoxing\.m2\repository\org\assertj\assertj-core\3.18.1\assertj-core-3.18.1.jar;C:\Users\guoxing\.m2\repository\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;C:\Users\guoxing\.m2\repository\org\junit\jupiter\junit-jupiter\5.7.0\junit-jupiter-5.7.0.jar;C:\Users\guoxing\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.7.0\junit-jupiter-api-5.7.0.jar;C:\Users\guoxing\.m2\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;C:\Users\guoxing\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\guoxing\.m2\repository\org\junit\platform\junit-platform-commons\1.7.0\junit-platform-commons-1.7.0.jar;C:\Users\guoxing\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.7.0\junit-jupiter-params-5.7.0.jar;C:\Users\guoxing\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.7.0\junit-jupiter-engine-5.7.0.jar;C:\Users\guoxing\.m2\repository\org\junit\platform\junit-platform-engine\1.7.0\junit-platform-engine-1.7.0.jar;C:\Users\guoxing\.m2\repository\org\mockito\mockito-core\3.6.0\mockito-core-3.6.0.jar;C:\Users\guoxing\.m2\repository\net\bytebuddy\byte-buddy-agent\1.10.18\byte-buddy-agent-1.10.18.jar;C:\Users\guoxing\.m2\repository\org\objenesis\objenesis\3.1\objenesis-3.1.jar;C:\Users\guoxing\.m2\repository\org\mockito\mockito-junit-jupiter\3.6.0\mockito-junit-jupiter-3.6.0.jar;C:\Users\guoxing\.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;C:\Users\guoxing\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-core\5.3.1\spring-core-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-jcl\5.3.1\spring-jcl-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\springframework\spring-test\5.3.1\spring-test-5.3.1.jar;C:\Users\guoxing\.m2\repository\org\xmlunit\xmlunit-core\2.7.0\xmlunit-core-2.7.0.jar;C:\Users\guoxing\.m2\repository\org\bgee\log4jdbc-log4j2\log4jdbc-log4j2-jdbc4.1\1.16\log4jdbc-log4j2-jdbc4.1-1.16.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\3.8.1\maven-compiler-plugin-3.8.1.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-plugin-api\3.0\maven-plugin-api-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-model\3.0\maven-model-3.0.jar;C:\Users\guoxing\.m2\repository\org\sonatype\sisu\sisu-inject-plexus\1.4.2\sisu-inject-plexus-1.4.2.jar;C:\Users\guoxing\.m2\repository\org\sonatype\sisu\sisu-inject-bean\1.4.2\sisu-inject-bean-1.4.2.jar;C:\Users\guoxing\.m2\repository\org\sonatype\sisu\sisu-guice\2.1.7\sisu-guice-2.1.7-noaop.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-artifact\3.0\maven-artifact-3.0.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-utils\2.0.4\plexus-utils-2.0.4.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-core\3.0\maven-core-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-settings\3.0\maven-settings-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-settings-builder\3.0\maven-settings-builder-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-repository-metadata\3.0\maven-repository-metadata-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-model-builder\3.0\maven-model-builder-3.0.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\maven-aether-provider\3.0\maven-aether-provider-3.0.jar;C:\Users\guoxing\.m2\repository\org\sonatype\aether\aether-impl\1.7\aether-impl-1.7.jar;C:\Users\guoxing\.m2\repository\org\sonatype\aether\aether-spi\1.7\aether-spi-1.7.jar;C:\Users\guoxing\.m2\repository\org\sonatype\aether\aether-api\1.7\aether-api-1.7.jar;C:\Users\guoxing\.m2\repository\org\sonatype\aether\aether-util\1.7\aether-util-1.7.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-interpolation\1.14\plexus-interpolation-1.14.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-classworlds\2.2.3\plexus-classworlds-2.2.3.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-component-annotations\1.5.5\plexus-component-annotations-1.5.5.jar;C:\Users\guoxing\.m2\repository\org\sonatype\plexus\plexus-sec-dispatcher\1.3\plexus-sec-dispatcher-1.3.jar;C:\Users\guoxing\.m2\repository\org\sonatype\plexus\plexus-cipher\1.4\plexus-cipher-1.4.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\shared\maven-shared-utils\3.2.1\maven-shared-utils-3.2.1.jar;C:\Users\guoxing\.m2\repository\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\guoxing\.m2\repository\org\apache\maven\shared\maven-shared-incremental\1.1\maven-shared-incremental-1.1.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-java\0.9.10\plexus-java-0.9.10.jar;C:\Users\guoxing\.m2\repository\org\ow2\asm\asm\6.2\asm-6.2.jar;C:\Users\guoxing\.m2\repository\com\thoughtworks\qdox\qdox\2.0-M8\qdox-2.0-M8.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-compiler-api\2.8.4\plexus-compiler-api-2.8.4.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-compiler-manager\2.8.4\plexus-compiler-manager-2.8.4.jar;C:\Users\guoxing\.m2\repository\org\codehaus\plexus\plexus-compiler-javac\2.8.4\plexus-compiler-javac-2.8.4.jar com.soz.aps.ApsApplication
14:29:20,360 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:29:20,360 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:29:20,360 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/D:/ideajob/%e5%a4%87%e4%bb%bd/aps-wire-rope_system/aps-wire-rope_system/target/classes/logback.xml]
14:29:20,438 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:29:20,438 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:29:20,438 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
14:29:20,454 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:29:20,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:29:20,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILEERROR]
14:29:20,532 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1690254271 - No compression will be used
14:29:20,532 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1690254271 - Will use the pattern ./logs/graceLogs/error/log-error-%d{yyyy-MM-dd}.%i.log for the active file
14:29:20,532 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@55d56113 - The date pattern is 'yyyy-MM-dd' from file name pattern './logs/graceLogs/error/log-error-%d{yyyy-MM-dd}.%i.log'.
14:29:20,532 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@55d56113 - Roll-over at midnight.
14:29:20,532 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@55d56113 - Setting initial period to Tue Nov 30 11:04:15 CST 2021
14:29:20,532 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@55d56113 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:29:20,532 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@55d56113 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEERROR] - Active log file name: ./logs/graceLogs/log_error.log
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEERROR] - File property is set to [./logs/graceLogs/log_error.log]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILEWARN]
14:29:20,547 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@343965883 - No compression will be used
14:29:20,547 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@343965883 - Will use the pattern ./logs/graceLogs/warn/log-warn-%d{yyyy-MM-dd}.%i.log for the active file
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@dc24521 - The date pattern is 'yyyy-MM-dd' from file name pattern './logs/graceLogs/warn/log-warn-%d{yyyy-MM-dd}.%i.log'.
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@dc24521 - Roll-over at midnight.
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@dc24521 - Setting initial period to Tue Nov 30 11:04:14 CST 2021
14:29:20,547 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@dc24521 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:29:20,547 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@dc24521 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEWARN] - Active log file name: ./logs/graceLogs/log_warn.log
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEWARN] - File property is set to [./logs/graceLogs/log_warn.log]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILEINFO]
14:29:20,547 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@280884709 - No compression will be used
14:29:20,547 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@280884709 - Will use the pattern ./logs/graceLogs/info/log-info-%d{yyyy-MM-dd}.%i.log for the active file
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6e1ec318 - The date pattern is 'yyyy-MM-dd' from file name pattern './logs/graceLogs/info/log-info-%d{yyyy-MM-dd}.%i.log'.
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6e1ec318 - Roll-over at midnight.
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6e1ec318 - Setting initial period to Tue Nov 30 11:04:15 CST 2021
14:29:20,547 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6e1ec318 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:29:20,547 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6e1ec318 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEINFO] - Active log file name: ./logs/graceLogs/log_info.log
14:29:20,547 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILEINFO] - File property is set to [./logs/graceLogs/log_info.log]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
14:29:20,547 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.connection] to OFF
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.resultset] to OFF
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.resultsettable] to OFF
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.audit] to OFF
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.sqltiming] to INFO
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.sqlonly] to OFF
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
14:29:20,563 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
14:29:20,563 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILEINFO] to Logger[ROOT]
14:29:20,563 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILEWARN] to Logger[ROOT]
14:29:20,563 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILEERROR] to Logger[ROOT]
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:29:20,563 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7e0b0338 - Registering current configuration as safe fallback point


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.0)

[2021-11-30 14:29:21.188] [INFO ] [com.soz.aps.ApsApplication] [Line:55 ] - Starting ApsApplication using Java 1.8.0 on LAPTOP-GBDB5MBP with PID 75660 (D:\ideajob\备份\aps-wire-rope_system\aps-wire-rope_system\target\classes started by guoxing in D:\ideajob\备份\aps-wire-rope_system\aps-wire-rope_system)
[2021-11-30 14:29:21.188] [INFO ] [com.soz.aps.ApsApplication] [Line:660] - No active profile set, falling back to default profiles: default
[2021-11-30 14:29:22.094] [INFO ] [org.springframework.data.repository.config.RepositoryConfigurationDelegate] [Line:128] - Bootstrapping Spring Data JPA repositories in DEFERRED mode.
[2021-11-30 14:29:22.453] [INFO ] [org.springframework.data.repository.config.RepositoryConfigurationDelegate] [Line:188] - Finished Spring Data repository scanning in 338 ms. Found 72 JPA repository interfaces.
[2021-11-30 14:29:22.875] [INFO ] [org.springframework.boot.web.embedded.tomcat.TomcatWebServer] [Line:108] - Tomcat initialized with port(s): 8080 (http)
[2021-11-30 14:29:22.875] [INFO ] [org.apache.coyote.http11.Http11NioProtocol] [Line:173] - Initializing ProtocolHandler ["http-nio-8080"]
[2021-11-30 14:29:22.875] [INFO ] [org.apache.catalina.core.StandardService] [Line:173] - Starting service [Tomcat]
[2021-11-30 14:29:22.875] [INFO ] [org.apache.catalina.core.StandardEngine] [Line:173] - Starting Servlet engine: [Apache Tomcat/9.0.39]
[2021-11-30 14:29:23.109] [INFO ] [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]] [Line:173] - Initializing Spring embedded WebApplicationContext
[2021-11-30 14:29:23.109] [INFO ] [org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext] [Line:289] - Root WebApplicationContext: initialization completed in 1874 ms
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[2021-11-30 14:29:23.250] [INFO ] [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] [Line:181] - Initializing ExecutorService 'applicationTaskExecutor'
[2021-11-30 14:29:23.250] [INFO ] [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] [Line:181] - Initializing ExecutorService 'taskScheduler'
[2021-11-30 14:29:23.344] [INFO ] [org.hibernate.jpa.internal.util.LogHelper] [Line:31 ] - HHH000204: Processing PersistenceUnitInfo [name: default]
[2021-11-30 14:29:23.406] [INFO ] [org.hibernate.Version] [Line:44 ] - HHH000412: Hibernate ORM core version 5.4.23.Final
[2021-11-30 14:29:23.531] [WARN ] [org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration] [Line:221] - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
[2021-11-30 14:29:23.547] [INFO ] [org.hibernate.annotations.common.Version] [Line:56 ] - HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
[2021-11-30 14:29:23.656] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:110] - HikariPool-1 - Starting...
[2021-11-30 14:29:24.093] [INFO ] [org.apache.coyote.http11.Http11NioProtocol] [Line:173] - Starting ProtocolHandler ["http-nio-8080"]
[2021-11-30 14:29:24.109] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:123] - HikariPool-1 - Start completed.
[2021-11-30 14:29:24.125] [INFO ] [org.springframework.boot.web.embedded.tomcat.TomcatWebServer] [Line:220] - Tomcat started on port(s): 8080 (http) with context path ''
[2021-11-30 14:29:24.125] [INFO ] [org.springframework.data.repository.config.DeferredRepositoryInitializationListener] [Line:51 ] - Triggering deferred initialization of Spring Data repositories…
[2021-11-30 14:29:24.125] [INFO ] [org.hibernate.dialect.Dialect] [Line:170] - HHH000400: Using dialect: org.hibernate.dialect.MySQL55Dialect
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.RInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.RInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.ZInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.ZInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.GInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.GInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.YInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.YInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.DeductionKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.DeductionKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.inventory.CInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.inventory.CInventoryKey
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.code.S_code_product_categoryId
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.code.S_code_product_categoryId
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:287] - HHH000038: Composite-id class does not override equals(): com.soz.aps.entity.BomItemId
[2021-11-30 14:29:24.406] [WARN ] [org.hibernate.mapping.RootClass] [Line:290] - HHH000039: Composite-id class does not override hashCode(): com.soz.aps.entity.BomItemId
[2021-11-30 14:29:25.477] [INFO ] [org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator] [Line:52 ] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
[2021-11-30 14:29:25.492] [INFO ] [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] [Line:434] - Initialized JPA EntityManagerFactory for persistence unit 'default'
[2021-11-30 14:29:26.086] [WARN ] [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] [Line:596] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'r_code_special_reminderDao' defined in com.soz.aps.dao.code.R_code_special_reminderDao defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
[2021-11-30 14:29:26.086] [INFO ] [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] [Line:648] - Closing JPA EntityManagerFactory for persistence unit 'default'
[2021-11-30 14:29:26.086] [INFO ] [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] [Line:218] - Shutting down ExecutorService 'taskScheduler'
[2021-11-30 14:29:26.086] [INFO ] [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] [Line:218] - Shutting down ExecutorService 'applicationTaskExecutor'
[2021-11-30 14:29:26.086] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:350] - HikariPool-1 - Shutdown initiated...
[2021-11-30 14:29:26.098] [INFO ] [com.zaxxer.hikari.HikariDataSource] [Line:352] - HikariPool-1 - Shutdown completed.
[2021-11-30 14:29:26.099] [INFO ] [org.apache.coyote.http11.Http11NioProtocol] [Line:173] - Pausing ProtocolHandler ["http-nio-8080"]
[2021-11-30 14:29:26.219] [INFO ] [org.apache.catalina.core.StandardService] [Line:173] - Stopping service [Tomcat]
[2021-11-30 14:29:26.219] [INFO ] [org.apache.coyote.http11.Http11NioProtocol] [Line:173] - Stopping ProtocolHandler ["http-nio-8080"]
[2021-11-30 14:29:26.266] [INFO ] [org.apache.coyote.http11.Http11NioProtocol] [Line:173] - Destroying ProtocolHandler ["http-nio-8080"]
[2021-11-30 14:29:26.266] [INFO ] [org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener] [Line:136] - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[2021-11-30 14:29:26.297] [ERROR] [org.springframework.boot.SpringApplication] [Line:856] - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'r_code_special_reminderDao' defined in com.soz.aps.dao.code.R_code_special_reminderDao defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$184/2075952726.getObject(Unknown Source)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:671)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:659)
	at org.springframework.data.repository.config.DeferredRepositoryInitializationListener.onApplicationEvent(DeferredRepositoryInitializationListener.java:53)
	at org.springframework.data.repository.config.DeferredRepositoryInitializationListener.onApplicationEvent(DeferredRepositoryInitializationListener.java:35)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:203)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:196)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:161)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:426)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298)
	at com.soz.aps.ApsApplication.main(ApsApplication.java:22)
Caused by: java.lang.IncompatibleClassChangeError: null
	at org.springframework.data.jpa.util.JpaMetamodel.lambda$isSingleIdAttribute$4(JpaMetamodel.java:94)
	at org.springframework.data.jpa.util.JpaMetamodel$$Lambda$810/1829287142.test(Unknown Source)
	at java.util.Optional.filter(Optional.java:178)
	at org.springframework.data.jpa.util.JpaMetamodel.isSingleIdAttribute(JpaMetamodel.java:94)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl.lambda$new$2(JpaPersistentPropertyImpl.java:110)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl$$Lambda$803/430050226.get(Unknown Source)
	at org.springframework.data.util.Lazy.getNullable(Lazy.java:230)
	at org.springframework.data.util.Lazy.get(Lazy.java:114)
	at org.springframework.data.jpa.mapping.JpaPersistentPropertyImpl.isIdProperty(JpaPersistentPropertyImpl.java:141)
	at org.springframework.data.jpa.mapping.JpaPersistentEntityImpl.returnPropertyIfBetterIdPropertyCandidateOrNull(JpaPersistentEntityImpl.java:72)
	at org.springframework.data.jpa.mapping.JpaPersistentEntityImpl.returnPropertyIfBetterIdPropertyCandidateOrNull(JpaPersistentEntityImpl.java:39)
	at org.springframework.data.mapping.model.BasicPersistentEntity.addPersistentProperty(BasicPersistentEntity.java:224)
	at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.createAndRegisterProperty(AbstractMappingContext.java:554)
	at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:522)
	at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:708)
	at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:385)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:259)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:202)
	at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:86)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:324)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport$$Lambda$750/440902120.accept(Unknown Source)
	at java.util.Optional.ifPresent(Optional.java:159)
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:324)
	at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:144)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
	... 26 common frames omitted

Process finished with exit code 1

这是我改完后的

<?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>2.4.0</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.soz</groupId>
    <artifactId>aps</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>aps</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-freemarker</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <!-- zyp加——分页———-->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
        <!--end-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!--监控sql日志-->
        <dependency>
            <groupId>org.bgee.log4jdbc-log4j2</groupId>
            <artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
            <version>1.16</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

仔细看了下报错异常 spring在创建JpaRepositoryFactoryBean这个工厂bean的时候报错的

  • 首先看关联的Entity的注解有没有补上
  • 然后看看你的Repository对象, 根据id查询返回结果的方法是否用了Optional封装
    • 类似这样的方法
      • User findById(Long userId);  
        改为
        Optional<User> findById(Long userId);
        
      • SpringBoot 2.X之后的JPA根据id查询的返回结果都必须是Optional封装的
  • 然后看看JDK版本是否兼容
1 Like

感谢帮忙,已解决,重新装了Java1.8可能是换了个版本或者是漏装了Java1.8se,不是注解的问题,注解啥的都是对的。

2 Likes