https://tomcat.apache.org/tomcat-8.5-doc/default-servlet.html
spring dispatcher와 같이 사용시
requestmapping 제외 설정 가능
<!-- default servlet -->
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/robots.txt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/favicon.ico</url-pattern>
</servlet-mapping>
http://blog.brunoraljic.com/how-to-exclude-css-and-js-files-from-spring-mvc-dispatcher-mapping/
- spring에서도 가능
<mvc:resources mapping="/favicon.ico" location="/favicon.ico" order="0"/>
'servlet & jsp' 카테고리의 다른 글
request to map (0) | 2018.11.14 |
---|---|
WEB-INF 경로의 파일 읽어 들이기 (0) | 2018.06.15 |
client IP 가져오기 (0) | 2018.04.21 |
[링크] 자바 Http / https 의 결과를 주고받을때 세션을 유지하고 싶다면! (0) | 2018.04.09 |
JarCheck.jsp파일을 이용한 classcast Error 잡아내기 (0) | 2016.06.03 |