I am writing spring mvc application.
I had asked this question should I make two different servlet entry for rest and normal html in web.xml, and it got resolved by the answers given by knowledgeable people present over stackoverflow (Answer: should I make two different servlet entry for rest and normal html in web.xml)
Now my web.xml include below code
<servlet>
<servlet-name>myapp</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring_myapp-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myapp</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
But after making changes to web.xml as mentioned in the answer, I am getting error No mapping found for HTTP request with URI [/myapp/img/logout.png]
.
I am not able to load any of the css, js as well as images
.
I searched for this issue and got the answer https://stackoverflow.com/a/17946825/3898076. If you find this question duplicate then please share the solution for it.
I am not able to figure out my mistake. Can you please help me out with this issue.
Note: I am including files as <script type="text/javascript" src="js/jquery.js"></script>
.
Thanks.