favicon.ico not found error?

后端 未结 2 649
陌清茗
陌清茗 2020-12-29 09:41

I have an application that uses Spring Security 3 runs on Tomcat. I didn\'t define any favicon for my website however when I run my application from my IDE sometimes

2条回答
  •  梦谈多话
    2020-12-29 10:46

    For Grails 3.0.11 & Spring Security Core 3.0.2, add "IS_AUTHENTICATED_ANONYMOUSLY" in application.groovy in the section:

    grails.plugin.springsecurity.controllerAnnotations.staticRules = [
    ...
    ..
    .
    [pattern: '/favicon.ico',      access: ['IS_AUTHENTICATED_ANONYMOUSLY']]
    ]
    

提交回复
热议问题