摘要:
问题 系统升级tomcat版本,从原有的8.0.36版本升级到9.0.37版本。 升级后发现,前端中资源文件返回时,content-type被错误的设置为text/html,从而导致css、js、png等无法加载。 解决 解决问题思路 系统中只会在filter中设置content-type。本系统中 阅读全文
摘要:
pom中引入tomcat源码 provided的scope,代表只能作用在编译和测试时 <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-catalina</artifactId> <version>8.0.36 阅读全文