How to intercept all requests for favicon.ico in SpringMVC?
I've got a controller that will respond to But I just realized that when you're in a sub page such as Is there a clean way to just respond to all favicon.ico requests? I'd rather not redirect all .ico requests if possible, but if that's the best solution, perhaps. | |||||
|
2 | Ok, one option I just finagled out of my fingers using the controller:
Note the need to use the file name fav.ico, if you try this using file name favicon.ico you'll get an infinite loop. I previously was using this approach for just And this assumes you're serving static content out of
|
'Framework & Platform > Spring' 카테고리의 다른 글
spring data - mongodb @DBRef (0) | 2013.06.12 |
---|---|
spring - @EnableTransactionManagement (0) | 2013.06.10 |
spring data - mongodb 도메인 객체에서 사용되는 annotation (0) | 2013.06.06 |
spring data - Spring Data MongoDB Remove _class field (0) | 2013.06.03 |
spring data - mongoTemplate CRUD example (0) | 2013.05.29 |