MrNiebit / -solo-blog

comment
0 stars 0 forks source link

Spring Boot 动态 修改定时任务task - gitsilence 的个人博客 #7

Open MrNiebit opened 3 years ago

MrNiebit commented 3 years ago

http://blog.lacknb.cn/articles/2020/10/04/1601813465391.html

A small and beautiful blogging system. 一款小而美的博客系统。

MrNiebit commented 3 years ago

报错

More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c o

(https://stackoverflow.com/questions/54290263/more-than-one-fragment-with-the-name-spring-web-was-found-this-is-not-legal-w)[https://stackoverflow.com/questions/54290263/more-than-one-fragment-with-the-name-spring-web-was-found-this-is-not-legal-w]

This error seems to happen after project's spring framework update, clearing the project history file in tomcat webapps may solve the problem.

StackOverflow上说,是由于 框架更新之后,没有清理。

正好 今天升级了框架版本 5.2.9,没 clean

解决办法: mvn clean

mvn install

再远程部署到tomcat上,不再报错。

share improve this answer follow