Could not get constructor for ...SingleTableEntityPersister/Unable to start embedded Tomcat

首先看你是不是从java8升级到高级版本了,然后你以前运行没问题的SpringBoot现在报各种错误。没错,全是java的错,你一点错都没有

只需要在pom.xml里引入几个依赖即可

<dependency>
			<groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
			<version>2.3.0</version>
		</dependency>
		<dependency>
			<groupId>org.glassfish.jaxb</groupId>
			<artifactId>jaxb-runtime</artifactId>
			<version>2.3.0</version>
		</dependency>
		<dependency>
			<groupId>javax.activation</groupId>
			<artifactId>activation</artifactId>
			<version>1.1.1</version>
		</dependency>
		<dependency>
			<groupId>org.javassist</groupId>
			<artifactId>javassist</artifactId>
			<version>3.23.1-GA</version>
		</dependency>

这是一个java8飞升到java12的弟弟的血泪史

发布了16 篇原创文章 · 获赞 3 · 访问量 1362

猜你喜欢

转载自blog.csdn.net/weixin_40631132/article/details/89047368
今日推荐