java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping解决方法

x33g5p2x  于2021-12-30 转载在 Java  
字(0.6k)|赞(0)|评价(0)|浏览(498)

【现象】

Caused by: java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping

at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]

... 25 common frames omitted

【解决方法】

<dependency>
	<groupId>org.springframework</groupId>
	<artifactId>spring-webmvc</artifactId>
	<version>5.3.14</version>
</dependency>

相关文章