"E:\Program Files\Java\jdk1.8.0_51\bin\java" -Dspring.output.ansi.enabled=always -Didea.launcher.port=7535 "-Didea.launcher.bin.path=E:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2\bin" -Dfile.encoding=UTF-8 -classpath "E:\Program Files\Java\jdk1.8.0_51\jre\lib\charsets.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\deploy.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\access-bridge-64.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\cldrdata.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\dnsns.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jaccess.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jfxrt.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\localedata.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\nashorn.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunec.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunjce_provider.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunmscapi.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunpkcs11.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\zipfs.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\javaws.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\jce.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\jfr.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\jfxswt.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\jsse.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\management-agent.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\plugin.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\resources.jar;E:\Program Files\Java\jdk1.8.0_51\jre\lib\rt.jar;F:\GitRepository\HRParent\HRWeb\target\classes;F:\MavenRepository\org\springframework\boot\spring-boot-devtools\1.5.8.RELEASE\spring-boot-devtools-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\boot\spring-boot\1.5.8.RELEASE\spring-boot-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\spring-context\4.3.12.RELEASE\spring-context-4.3.12.RELEASE.jar;F:\MavenRepository\org\springframework\boot\spring-boot-autoconfigure\1.5.8.RELEASE\spring-boot-autoconfigure-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter-web\1.5.8.RELEASE\spring-boot-starter-web-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter\1.5.8.RELEASE\spring-boot-starter-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter-logging\1.5.8.RELEASE\spring-boot-starter-logging-1.5.8.RELEASE.jar;F:\MavenRepository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;F:\MavenRepository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;F:\MavenRepository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;F:\MavenRepository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;F:\MavenRepository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;F:\MavenRepository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter-tomcat\1.5.8.RELEASE\spring-boot-starter-tomcat-1.5.8.RELEASE.jar;F:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-core\8.5.23\tomcat-embed-core-8.5.23.jar;F:\MavenRepository\org\apache\tomcat\tomcat-annotations-api\8.5.23\tomcat-annotations-api-8.5.23.jar;F:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-el\8.5.23\tomcat-embed-el-8.5.23.jar;F:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.23\tomcat-embed-websocket-8.5.23.jar;F:\MavenRepository\org\hibernate\hibernate-validator\5.3.5.Final\hibernate-validator-5.3.5.Final.jar;F:\MavenRepository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;F:\MavenRepository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;F:\MavenRepository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;F:\MavenRepository\com\fasterxml\jackson\core\jackson-databind\2.8.10\jackson-databind-2.8.10.jar;F:\MavenRepository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;F:\MavenRepository\com\fasterxml\jackson\core\jackson-core\2.8.10\jackson-core-2.8.10.jar;F:\MavenRepository\org\springframework\spring-web\4.3.12.RELEASE\spring-web-4.3.12.RELEASE.jar;F:\MavenRepository\org\springframework\spring-beans\4.3.12.RELEASE\spring-beans-4.3.12.RELEASE.jar;F:\MavenRepository\org\springframework\spring-webmvc\4.3.12.RELEASE\spring-webmvc-4.3.12.RELEASE.jar;F:\MavenRepository\org\springframework\spring-expression\4.3.12.RELEASE\spring-expression-4.3.12.RELEASE.jar;F:\MavenRepository\mysql\mysql-connector-java\5.1.44\mysql-connector-java-5.1.44.jar;F:\MavenRepository\com\alibaba\druid-spring-boot-starter\1.1.3\druid-spring-boot-starter-1.1.3.jar;F:\MavenRepository\com\alibaba\druid\1.1.3\druid-1.1.3.jar;E:\Program Files\Java\jdk1.8.0_51\jre\..\lib\jconsole.jar;E:\Program Files\Java\jdk1.8.0_51\jre\..\lib\tools.jar;F:\MavenRepository\com\baomidou\mybatis-plus\2.1.0\mybatis-plus-2.1.0.jar;F:\MavenRepository\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;F:\MavenRepository\org\mybatis\mybatis\3.4.4\mybatis-3.4.4.jar;F:\MavenRepository\com\github\jsqlparser\jsqlparser\1.1\jsqlparser-1.1.jar;F:\MavenRepository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.1\mybatis-spring-boot-starter-1.3.1.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter-jdbc\1.5.8.RELEASE\spring-boot-starter-jdbc-1.5.8.RELEASE.jar;F:\MavenRepository\org\apache\tomcat\tomcat-jdbc\8.5.23\tomcat-jdbc-8.5.23.jar;F:\MavenRepository\org\apache\tomcat\tomcat-juli\8.5.23\tomcat-juli-8.5.23.jar;F:\MavenRepository\org\springframework\spring-jdbc\4.3.12.RELEASE\spring-jdbc-4.3.12.RELEASE.jar;F:\MavenRepository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.1\mybatis-spring-boot-autoconfigure-1.3.1.jar;F:\MavenRepository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;F:\MavenRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;F:\MavenRepository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;F:\MavenRepository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;F:\GitRepository\HRParent\HRCommon\target\classes;F:\MavenRepository\org\springframework\spring-tx\4.3.12.RELEASE\spring-tx-4.3.12.RELEASE.jar;F:\MavenRepository\io\jsonwebtoken\jjwt\0.9.0\jjwt-0.9.0.jar;F:\MavenRepository\org\apache\commons\commons-lang3\3.6\commons-lang3-3.6.jar;F:\MavenRepository\org\springframework\boot\spring-boot-starter-aop\1.5.8.RELEASE\spring-boot-starter-aop-1.5.8.RELEASE.jar;F:\MavenRepository\org\springframework\spring-aop\4.3.12.RELEASE\spring-aop-4.3.12.RELEASE.jar;F:\MavenRepository\org\aspectj\aspectjweaver\1.8.11\aspectjweaver-1.8.11.jar;F:\MavenRepository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;F:\MavenRepository\org\springframework\spring-core\4.3.12.RELEASE\spring-core-4.3.12.RELEASE.jar;E:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.hr.web.HrWebApplication 16:55:09.651 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : [/mybatis-plus-[\w-]+.jar] 16:55:09.653 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/] 16:55:09.654 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:.../target/classes/, file:.../target/classes/] . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.8.RELEASE) ......... 2018-03-03 16:55:10.025 INFO 9664 --- [ restartedMain] com.hr.web.HrWebApplication : No active profile set, falling back to default profiles: default ........... Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-03-03 16:55:13.582 ERROR 9664 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). Process finished with exit code 0
项目配置:
问题:
1.application.yml/banner.txt 中的配置都没有生效
排查:
1.查看生成后的包中到底有哪些,新建了一个springboot demo ,生成后的包如下:
对比上面,发现生成的包有问题
2.确定问题包生成有问题后,查看pom中的配置
将该错误配置改为如下配置