spring boot 启动失败,不报错No active profile set, falling back to default profiles: default

 2019-10-17 22:03  阅读(3604)
文章分类:Spring boot

问题;INFO [contextName_IS_UNDEFINED] 2018-08-24 14:11:01.255 [restartedMain] c.c.g.g.GateWayEntry.logStartupProfileInfo: No active profile set, falling back to default profiles: default

Process finished with exit code 0
解决方法:
错误的原因是 内置的Tomcat启动时发生错误而导致的;
把系统的日志配置文件logback.xml去掉,就打印处理spring boot的错误日志,然后就出现下面错误
Caused by: java.lang.IllegalArgumentException: ProceedingJoinPoint is only supported for around advice
at org.springframework.aop.aspectj.AbstractAspectJAdvice.maybeBindProceedingJoinPoint(AbstractAspectJAdvice.java:414) ~[spring-aop-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.calculateArgumentBindings(AbstractAspectJAdvice.java:388) ~[spring-aop-5.0.8.RELEASE.jar:5.0.8.RELEASE]
意思,只能用@Around 通知,不能用@Before


来源:[]()

点赞(0)
版权归原创作者所有,任何形式转载请联系作者; Java 技术驿站 >> spring boot 启动失败,不报错No active profile set, falling back to default profiles: default

相关推荐