Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/request/async/AsyncReques
这两个依赖jar包会发生冲突,如果同时存在启动时不会发生错误,都能正常启动,当访问时会报错
报错截图:
错误原因: spring-boot-starter-web依赖于spring-web
两个都依赖相当于重复依赖spring-web导致冲突
解决方法:
去掉依赖就能够正常访问