jsp - resources configuration mapping in the servlet -


the problem addressed i'm trying add javascript file use in page in project, built project 1 servlet , many controllers using annotations , reflection.

i set 2 url-mappings:

   <servlet-mapping>     <servlet-name>servletmanager</servlet-name>     <url-pattern> *.* </url-pattern>    </servlet-mapping>     <servlet-mapping>     <servlet-name>servletmanager</servlet-name>     <url-pattern> / </url-pattern>    </servlet-mapping> 

the first 1 mapping resources , second 1 mapping http request (note: project has 1 servlet , many controllers)


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -