我认为spring-boot-starter-security中的一些模块与log4j冲突,但我不知道哪一个.
我的依赖关系如下:
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-security"){
exclude module: "spring-boot-starter-logging"
}
compile "org.apache.logging.log4j:log4j-api"
compile "org.apache.logging.log4j:log4j-core"
compile "org.apache.logging.log4j:log4j-slf4j-impl"
compile('org.apache.poi:poi:3.10.1')
compile('org.apache.poi:poi-ooxml:3.10.1')
testCompile("junit:junit")
Run Code Online (Sandbox Code Playgroud) java logging spring-security dependency-management spring-boot
我的 PM 有一个要求,将图标更改为动画加载图像。仅当我简单地将 link.href 指向 gif 文件时,它才适用于 Firefox。
我做了一些研究,发现 chrome 不支持动画图标。但wiki说 chrome 4.0 支持动画 GIF。
function changeFavicon() {
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'http://uploads.neatorama.com/vosa/theme/neatobambino/media/loading.gif';
document.getElementsByTagName('head')[0].appendChild(link);
}
Run Code Online (Sandbox Code Playgroud)
上面是我的代码,但 favicon 只在 Firefox 中动画。