Maven builds Spring+SpringMVC+Mybatis without entering js, css styles and other issues

The SSM framework was successfully built with Maven, but it has not entered js, nor can it use css styles and other issues;

Workaround: Configure web.xml

<servlet-mapping>
     	<servlet-name >default </servlet-name >         
		<url-pattern >*.js</url-pattern>      
	</servlet-mapping >
	<servlet-mapping >
     	<servlet-name >default </servlet-name >             
		<url-pattern >*.css</url-pattern>        
	</servlet-mapping >

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325809056&siteId=291194637