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

问题;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

    原文作者:Spring Boot
    原文地址: https://blog.csdn.net/qq_37123333/article/details/82020025
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞