springboot启动报错 Failed to scan.....derbyLocale_zh_TW.jar异常解决

        最近在调试Springboot项目的时候,发现每次启动控制台都会打印这样的一个异常信息:

在这里插入图片描述
        其中,最明显的一个信息是:

        Failed to scan.....derbyLocale_zh_TW.jar

        出现这个问题的原因是由于Springboot项目中自带的tomcat插件,冲突导致

解决方案:

        检查pom.xml文件中找到有以下内容,删除,重启Spirgboot即可。

        <dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.tomcat.embed</groupId>
			<artifactId>tomcat-embed-jasper</artifactId>
			<scope>provided</scope>
		</dependency>

在这里插入图片描述
        那么,你的问题解决了么~

发布了184 篇原创文章 · 获赞 1443 · 访问量 40万+

猜你喜欢

转载自blog.csdn.net/weixin_44318830/article/details/104218809