Exception in thread "main" java.lang.ClassCastException: org.springframework.boot.context.event.ApplicationStartingEvent cannot be cast to org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
at org.springframework.boot.context.config.AnsiOutputApplicationListener.onApplicationEvent(AnsiOutputApplicationListener.java:37)
05-23
4709
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-20
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-10
528
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-19
1469
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)