Closed onexuan closed 1 year ago
I got warming
Warning: Could not resolve org.springframework.web.servlet.DispatcherServlet for reflection configuration. Reason: java.lang.NoClassDefFoundError: jakarta/servlet/http/HttpServlet. Warning: Could not resolve io.netty.channel.socket.nio.NioServerSocketChannel for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.channel.socket.nio.NioServerSocketChannel.
How to fix
NoClassDefFoundError DispatcherServlet error has been fixed But how to fix io.netty.channel.socket.nio.NioServerSocketChannel for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.channel.socket.nio.NioServerSocketChannel.
Spring Boot 3.0.2
Application run failed java.lang.NoClassDefFoundError: org.springframework.web.servlet.DispatcherServlet at org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfigurationBeanDefinitions$DispatcherServletConfigurationBeanDefinitions.getDispatcherServletBeanDefinition(DispatcherServletAutoConfigurationBeanDefinitions.java:84) at com.meto.XApplicationBeanFactoryRegistrations.registerBeanDefinitions(XApplicationBeanFactoryRegistrations.java:132) at com.meto.XApplicationApplicationContextInitializer.initialize(XApplicationApplicationContextInitializer.java:26) at com.meto.initialize(XApplicationApplicationContextInitializer.java:19) at org.springframework.context.aot.AotApplicationContextInitializer.initialize(AotApplicationContextInitializer.java:72) at org.springframework.context.aot.AotApplicationContextInitializer.lambda$forInitializerClasses$0(AotApplicationContextInitializer.java:61) at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:603) at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:383) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291)
how to fix this?