错误介绍

在运行SpringBoot 整合SpringData Jpa的项目时 ,控制台打印这个错误 ,详细信息如下

15:45:53.858 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [ah.szxy.test.TestSpringBootJpa]
15:45:53.870 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [ah.szxy.test.TestSpringBootJpa]
15:45:53.870 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [ah.szxy.test.TestSpringBootJpa]
15:45:53.871 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [ah.szxy.test.TestSpringBootJpa]
15:45:53.872 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [ah.szxy.test.TestSpringBootJpa]
15:45:53.872 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [ah.szxy.test.TestSpringBootJpa]
15:45:53.872 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [ah.szxy.test.TestSpringBootJpa]
15:45:53.876 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@74a10858 testClass = TestSpringBootJpa, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@23fe1d71 testClass = TestSpringBootJpa, locations = '{}', classes = '{class ah.szxy.AppForSpringBootJap, class ah.szxy.AppForSpringBootJap}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.SpringBootTestContextCustomizer@57baeedf, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5442a311, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4667ae56, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@6e06451e], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].
15:45:53.877 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [ah.szxy.test.TestSpringBootJpa]
15:45:53.877 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [ah.szxy.test.TestSpringBootJpa]
15:45:53.964 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemProperties' with lowest search precedence
15:45:53.966 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'systemEnvironment' with lowest search precedence
15:45:53.967 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [MapPropertySource@660017404 {name='systemProperties', properties={java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Java\jdk1.8.0_181\jre\bin, java.vm.version=25.181-b13, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.country=CN, user.script=, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specification, user.dir=E:\JAVA WORKSPACE\SpringLargeFamily-SpringBoot\22-SpringBoot-Jpa, java.runtime.version=1.8.0_181-b13, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\jdk1.8.0_181\jre\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 10, sun.jnu.encoding=GBK, java.library.path=C:\Program Files\Java\jdk1.8.0_181\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\app\Software\product\11.2.0\dbhome_1\bin;D:\Program Files\apache-tomcat-7.0.69\bin;C:\jdk1.6.0_04;C:\Program Files\Java\jdk1.8.0_181\bin;"D:\app\曹海洋\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Pr";C:\Program Files (x86)\MySQL\MySQL Server 5.5;D:\Program Files (x86)\apache-tomcat-7.0.69\bin;D:\c\runtime\win64;D:\c\bin;D:\c\polyspace\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\曹海洋\AppData\Local\Microsoft\WindowsApps;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;., java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=10.0, user.home=C:\Users\曹海洋, user.timezone=Asia/Shanghai, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=UTF-8, java.specification.version=1.8, java.class.path=E:\JAVA WORKSPACE\SpringLargeFamily-SpringBoot\22-SpringBoot-Jpa\target\test-classes;E:\JAVA WORKSPACE\SpringLargeFamily-SpringBoot\22-SpringBoot-Jpa\target\classes;D:\rep\org\springframework\boot\spring-boot-starter-web\1.5.10.RELEASE\spring-boot-starter-web-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-starter\1.5.10.RELEASE\spring-boot-starter-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot\1.5.10.RELEASE\spring-boot-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-autoconfigure\1.5.10.RELEASE\spring-boot-autoconfigure-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-starter-logging\1.5.10.RELEASE\spring-boot-starter-logging-1.5.10.RELEASE.jar;D:\rep\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;D:\rep\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;D:\rep\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\rep\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;D:\rep\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:\rep\org\springframework\boot\spring-boot-starter-tomcat\1.5.10.RELEASE\spring-boot-starter-tomcat-1.5.10.RELEASE.jar;D:\rep\org\apache\tomcat\embed\tomcat-embed-core\8.5.27\tomcat-embed-core-8.5.27.jar;D:\rep\org\apache\tomcat\tomcat-annotations-api\8.5.27\tomcat-annotations-api-8.5.27.jar;D:\rep\org\apache\tomcat\embed\tomcat-embed-el\8.5.27\tomcat-embed-el-8.5.27.jar;D:\rep\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.27\tomcat-embed-websocket-8.5.27.jar;D:\rep\org\hibernate\hibernate-validator\5.3.6.Final\hibernate-validator-5.3.6.Final.jar;D:\rep\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\rep\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;D:\rep\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\rep\com\fasterxml\jackson\core\jackson-databind\2.8.10\jackson-databind-2.8.10.jar;D:\rep\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;D:\rep\com\fasterxml\jackson\core\jackson-core\2.8.10\jackson-core-2.8.10.jar;D:\rep\org\springframework\spring-web\4.3.14.RELEASE\spring-web-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-aop\4.3.14.RELEASE\spring-aop-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-beans\4.3.14.RELEASE\spring-beans-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-context\4.3.14.RELEASE\spring-context-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-webmvc\4.3.14.RELEASE\spring-webmvc-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-expression\4.3.14.RELEASE\spring-expression-4.3.14.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-starter-thymeleaf\1.5.10.RELEASE\spring-boot-starter-thymeleaf-1.5.10.RELEASE.jar;D:\rep\org\thymeleaf\thymeleaf-spring4\2.1.6.RELEASE\thymeleaf-spring4-2.1.6.RELEASE.jar;D:\rep\org\thymeleaf\thymeleaf\2.1.6.RELEASE\thymeleaf-2.1.6.RELEASE.jar;D:\rep\ognl\ognl\3.0.8\ognl-3.0.8.jar;D:\rep\org\unbescape\unbescape\1.1.0.RELEASE\unbescape-1.1.0.RELEASE.jar;D:\rep\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\rep\nz\net\ultraq\thymeleaf\thymeleaf-layout-dialect\1.4.0\thymeleaf-layout-dialect-1.4.0.jar;D:\rep\org\codehaus\groovy\groovy\2.4.13\groovy-2.4.13.jar;D:\rep\org\springframework\boot\spring-boot-starter-data-jpa\1.5.10.RELEASE\spring-boot-starter-data-jpa-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-starter-aop\1.5.10.RELEASE\spring-boot-starter-aop-1.5.10.RELEASE.jar;D:\rep\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\rep\org\springframework\boot\spring-boot-starter-jdbc\1.5.10.RELEASE\spring-boot-starter-jdbc-1.5.10.RELEASE.jar;D:\rep\org\apache\tomcat\tomcat-jdbc\8.5.27\tomcat-jdbc-8.5.27.jar;D:\rep\org\apache\tomcat\tomcat-juli\8.5.27\tomcat-juli-8.5.27.jar;D:\rep\org\springframework\spring-jdbc\4.3.14.RELEASE\spring-jdbc-4.3.14.RELEASE.jar;D:\rep\org\hibernate\hibernate-core\5.0.12.Final\hibernate-core-5.0.12.Final.jar;D:\rep\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar;D:\rep\org\javassist\javassist\3.21.0-GA\javassist-3.21.0-GA.jar;D:\rep\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\rep\org\jboss\jandex\2.0.0.Final\jandex-2.0.0.Final.jar;D:\rep\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\rep\org\hibernate\common\hibernate-commons-annotations\5.0.1.Final\hibernate-commons-annotations-5.0.1.Final.jar;D:\rep\org\hibernate\hibernate-entitymanager\5.0.12.Final\hibernate-entitymanager-5.0.12.Final.jar;D:\rep\javax\transaction\javax.transaction-api\1.2\javax.transaction-api-1.2.jar;D:\rep\org\springframework\data\spring-data-jpa\1.11.10.RELEASE\spring-data-jpa-1.11.10.RELEASE.jar;D:\rep\org\springframework\data\spring-data-commons\1.13.10.RELEASE\spring-data-commons-1.13.10.RELEASE.jar;D:\rep\org\springframework\spring-orm\4.3.14.RELEASE\spring-orm-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-tx\4.3.14.RELEASE\spring-tx-4.3.14.RELEASE.jar;D:\rep\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:\rep\org\springframework\spring-aspects\4.3.14.RELEASE\spring-aspects-4.3.14.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-starter-test\1.5.10.RELEASE\spring-boot-starter-test-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-test\1.5.10.RELEASE\spring-boot-test-1.5.10.RELEASE.jar;D:\rep\org\springframework\boot\spring-boot-test-autoconfigure\1.5.10.RELEASE\spring-boot-test-autoconfigure-1.5.10.RELEASE.jar;D:\rep\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;D:\rep\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;D:\rep\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;D:\rep\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;D:\rep\junit\junit\4.12\junit-4.12.jar;D:\rep\org\assertj\assertj-core\2.6.0\assertj-core-2.6.0.jar;D:\rep\org\mockito\mockito-core\1.10.19\mockito-core-1.10.19.jar;D:\rep\org\objenesis\objenesis\2.1\objenesis-2.1.jar;D:\rep\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\rep\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;D:\rep\org\skyscreamer\jsonassert\1.4.0\jsonassert-1.4.0.jar;D:\rep\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\rep\org\springframework\spring-core\4.3.14.RELEASE\spring-core-4.3.14.RELEASE.jar;D:\rep\org\springframework\spring-test\4.3.14.RELEASE\spring-test-4.3.14.RELEASE.jar;D:\rep\mysql\mysql-connector-java\5.1.45\mysql-connector-java-5.1.45.jar;D:\rep\com\alibaba\druid\1.0.9\druid-1.0.9.jar;C:\Program Files\Java\jdk1.8.0_181\lib\jconsole.jar;C:\Program Files\Java\jdk1.8.0_181\lib\tools.jar;D:\Program Files\me\configuration\org.eclipse.osgi\851\0\.cp;D:\Program Files\me\configuration\org.eclipse.osgi\850\0\.cp, user.name=曹海洋, java.vm.specification.version=1.8, sun.java.command=org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 64605 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -test ah.szxy.test.TestSpringBootJpa:findUserByNameHQL, java.home=C:\Program Files\Java\jdk1.8.0_181\jre, sun.arch.data.model=64, user.language=zh, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.8.0_181, java.ext.dirs=C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_181\jre\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}}, SystemEnvironmentPropertySource@1381965390 {name='systemEnvironment', properties={configsetroot=C:\WINDOWS\ConfigSetRoot, USERDOMAIN_ROAMINGPROFILE=CHY, PROCESSOR_LEVEL=6, SESSIONNAME=Console, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=AMD64, NVIDIAWHITELISTED=0x01, PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules, SystemDrive=C:, USERNAME=曹海洋, ProgramFiles(x86)=C:\Program Files (x86), VISUALSVN_SERVER=D:\Program Files\, FPS_BROWSER_USER_PROFILE_STRING=Default, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, DriverData=C:\Windows\System32\Drivers\DriverData, SHIM_MCCOMPAT=0x810000001, ProgramData=C:\ProgramData, ProgramW6432=C:\Program Files, HOMEPATH=\Users\曹海洋, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel, ProgramFiles=C:\Program Files, PUBLIC=C:\Users\Public, windir=C:\WINDOWS, =::=::\, LOCALAPPDATA=C:\Users\曹海洋\AppData\Local, PT5HOME=D:\c\Cisco Packet Tracer 6.0, USERDOMAIN=CHY, FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, LOGONSERVER=\\CHY, JAVA_HOME=C:\jdk1.6.0_04;C:\Program Files\Java\jdk1.8.0_181, VS120COMNTOOLS=D:\visual studio\Common7\Tools\, OneDrive=C:\Users\曹海洋\OneDrive, APPDATA=C:\Users\曹海洋\AppData\Roaming, CommonProgramFiles=C:\Program Files\Common Files, Path=D:\app\Software\product\11.2.0\dbhome_1\bin;D:\Program Files\apache-tomcat-7.0.69\bin;C:\jdk1.6.0_04;C:\Program Files\Java\jdk1.8.0_181\bin;"D:\app\曹海洋\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Pr";C:\Program Files (x86)\MySQL\MySQL Server 5.5;D:\Program Files (x86)\apache-tomcat-7.0.69\bin;D:\c\runtime\win64;D:\c\bin;D:\c\polyspace\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\曹海洋\AppData\Local\Microsoft\WindowsApps;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;, OS=Windows_NT, COMPUTERNAME=CHY, CATALINA_HOME=D:\Program Files\apache-tomcat-7.0.69, CATALINA_HOME2=D:\Program Files (x86)\apache-tomcat-7.0.69, PROCESSOR_REVISION=5e03, CLASSPATH=.;C:\jdk1.6.0_04;C:\Program Files\Java\jdk1.8.0_181\lib\dt.jar;C:\jdk1.6.0_04;C:\Program Files\Java\jdk1.8.0_181\lib\tools.jar; , CommonProgramW6432=C:\Program Files\Common Files, ComSpec=C:\WINDOWS\system32\cmd.exe, =D:=D:\, SystemRoot=C:\WINDOWS, TEMP=C:\temp, HOMEDRIVE=C:, PT6HOME=D:\c\Cisco Packet Tracer 6.0, USERPROFILE=C:\Users\曹海洋, TMP=C:\temp, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, NUMBER_OF_PROCESSORS=4}}]
15:45:53.969 [main] DEBUG org.springframework.core.env.MutablePropertySources - Adding PropertySource 'inline' with highest search precedence
15:45:53.977 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
15:45:53.978 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding PropertySource 'Inlined Test Properties' with highest search precedence.   ____          _            __ _ _/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/  ___)| |_)| | | | | || (_| |  ) ) ) )'  |____| .__|_| |_|_| |_\__, | / / / /=========|_|==============|___/=/_/_/_/:: Spring Boot ::       (v1.5.10.RELEASE)2019-08-28 15:45:54.340  INFO 19436 --- [           main] ah.szxy.test.TestSpringBootJpa           : Starting TestSpringBootJpa on chy with PID 19436 (started by 曹海洋 in E:\JAVA WORKSPACE\SpringLargeFamily-SpringBoot\22-SpringBoot-Jpa)
2019-08-28 15:45:54.341  INFO 19436 --- [           main] ah.szxy.test.TestSpringBootJpa           : No active profile set, falling back to default profiles: default
2019-08-28 15:45:54.605  INFO 19436 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@2362f559: startup date [Wed Aug 28 15:45:54 CST 2019]; root of context hierarchy
2019-08-28 15:45:55.924  INFO 19436 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d91627e8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-08-28 15:45:56.318  INFO 19436 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
2019-08-28 15:45:56.639  INFO 19436 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2019-08-28 15:45:56.660  INFO 19436 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default...]
2019-08-28 15:45:56.773  INFO 19436 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.0.12.Final}
2019-08-28 15:45:56.775  INFO 19436 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2019-08-28 15:45:56.776  INFO 19436 --- [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist
2019-08-28 15:45:56.827  INFO 19436 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2019-08-28 15:45:56.934  INFO 19436 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2019-08-28 15:45:58.332  INFO 19436 --- [           main] org.hibernate.tool.hbm2ddl.SchemaUpdate  : HHH000228: Running hbm2ddl schema update
2019-08-28 15:45:58.426  INFO 19436 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-08-28 15:45:59.427  INFO 19436 --- [           main] o.h.h.i.QueryTranslatorFactoryInitiator  : HHH000397: Using ASTQueryTranslatorFactory
2019-08-28 15:45:59.521  WARN 19436 --- [           main] o.h.hql.internal.ast.HqlSqlWalker        : [DEPRECATION] Encountered positional parameter near line 1, column 38 in HQL: [from ah.szxy.pojo.Users where name = ?].  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
2019-08-28 15:45:59.558  WARN 19436 --- [           main] o.h.hql.internal.ast.HqlSqlWalker        : [DEPRECATION] Encountered positional parameter near line 1, column 38 in HQL: [update ah.szxy.pojo.Users set name = ? where id = ?].  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
2019-08-28 15:45:59.559  WARN 19436 --- [           main] o.h.hql.internal.ast.HqlSqlWalker        : [DEPRECATION] Encountered positional parameter near line 1, column 51 in HQL: [update ah.szxy.pojo.Users set name = ? where id = ?].  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
2019-08-28 15:45:59.648  INFO 19436 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@2362f559: startup date [Wed Aug 28 15:45:54 CST 2019]; root of context hierarchy
2019-08-28 15:45:59.765  INFO 19436 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-08-28 15:45:59.767  INFO 19436 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-08-28 15:45:59.856  INFO 19436 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-08-28 15:45:59.856  INFO 19436 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-08-28 15:45:59.924  INFO 19436 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-08-28 15:45:59.987  WARN 19436 --- [           main] .t.AbstractTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2019-08-28 15:46:00.692  INFO 19436 --- [           main] ah.szxy.test.TestSpringBootJpa           : Started TestSpringBootJpa in 6.697 seconds (JVM running for 7.575)
2019-08-28 15:46:00.846  INFO 19436 --- [       Thread-2] o.s.w.c.s.GenericWebApplicationContext   : Closing org.springframework.web.context.support.GenericWebApplicationContext@2362f559: startup date [Wed Aug 28 15:45:54 CST 2019]; root of context hierarchy
2019-08-28 15:46:00.888  INFO 19436 --- [       Thread-2] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-08-28 15:46:00.896  INFO 19436 --- [       Thread-2] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed

错误原因 :

经检查 ,配置文件的配置参数正常 ,相关的jar也有 ,网上的解决方案都尝试了 ,但是都是不行

但是在检查代码时 ,发现自己虽然创建了 dao层的接口对象 ,但是没通过 @Autowired 注解进行注入 !!!

解决方案

在该对象上加上 @Autowired注解即可!!!

com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed相关推荐

  1. ERROR c.alibaba.druid.pool.DruidDataSource - init datasource error 运行代码提示数据库连接错误

    本地项目代码之前一直运行正常,数据库连接配置切换为生产环境数据库的配置并通过本地Maven工具打包(war包,clean再install)后,再切换回原来的测试库配置,本地再启服务跑代码就一直报错,如 ...

  2. com.alibaba.druid.pool.DruidDataSource - abandon connection, open stackTrace

    错误: com.alibaba.druid.pool.DruidDataSource - abandon connection, open stackTrace 原因: 连接池为了防止程序从池里取得连 ...

  3. canal本地运行异常:class com.alibaba.druid.pool.DruidDataSource cannot be cast to

    文章目录 1. 现象 2. 原因 3. 解决方案 1. 现象 启动时出现异常 class com.alibaba.druid.pool.DruidDataSource cannot be cast t ...

  4. com.alibaba.druid.pool.DruidDataSource  : testWhileIdle is true, validationQuery not set

    2019-10-13 16:37:56.965 ERROR 8088 --- [on(6)-127.0.0.1] com.alibaba.druid.pool.DruidDataSource   : ...

  5. ERROR com.alibaba.druid.pool.DruidDataSource - abandon connection, open stackTrace: 已解决

    错误日志: 2020-07-13 15:37:58,545 [Druid-ConnectionPool-Destroy-2092318840] ERROR com.alibaba.druid.pool ...

  6. com.alibaba.druid.pool.DruidDataSource.error解决办法

    这个错误主要是复制粘贴来的pom.xml文件版本号与代码或开发工具的版本不兼容,登录https://mvnrepository.com/artifact/mysql/mysql-connector-j ...

  7. 异常:com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60010, active 20, maxActive 20

    一.异常 Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connec ...

  8. Druid数据库连接池超时问题com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 1000, active 10

    问题描述: com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 1000, active 10at com.alibab ...

  9. wait millis 60010, active 20, maxActive 20 处理 com.alibaba.druid.pool.GetConnectionTimeout

    druid连接池连接用完导致 Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JD ...

最新文章

  1. R语言sub函数和gsub函数替换(replace)匹配的字符串实战
  2. memcached 常见问题 翻译
  3. Head First Design Pattern
  4. MariaDB Galera 集群安装配置
  5. 【填坑中】学生信息管理系统
  6. Redis数据库15点介绍
  7. Abbott's Revenge UVA - 816(BFS典型例题)
  8. 图像标签制作工具之labelImg-windows的安装与使用
  9. 智能电子标签的分类有哪几种
  10. 【Linux内核分析与应用-陈莉君老师】课程相关索引
  11. 图解Pandas,数据结构介绍 | 图文第1篇
  12. 电商基础知识:供应链产品介绍
  13. RLC谐振电路简单计算公式
  14. 描述12个异性追求者(互动媒体技术作业)
  15. rj45接口引脚定义_RJ45插座工作原理及接口定义分析
  16. Java——entity(实体类)的写法规范
  17. redhat6.3 jfreechar中文乱码解决途径
  18. 《数据库系统概论》复习笔记
  19. Chef学习之六:Knife cookbook
  20. 配置案例-Profinet转Modbus485网关连接富士电机温控器

热门文章

  1. SpringBoot内置http编码功能为例分析自动配置过程
  2. Unity 【VRAndroid】打包问题错误
  3. 中国智能音箱行业十四五调研分析及发展战略咨询研究报告2021年版
  4. JavaScript中BOM及DOM的学习
  5. html 苹果微信录音js,微信jssdk录音功能开发记录
  6. 为你详细解读HTTP请求头的具体含意
  7. python小波变换绘制频谱图和等线图
  8. ubuntu 安装 opera
  9. Android 开发第三方框架制作条形图、折线图、饼状图、水平条形图
  10. 注册表-破解网吧注册表专用