问题一:
Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.
移除父pom中的tomcat相关配置

子pom中增加 SpringBoot Web容器
<!-- SpringBoot Web容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

问题二:
Could not find artifact mysql:mysql-connector-java:pom:unknown

新版mysql驱动包的写法发生了变化
原:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
新:
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>

问题三:
dependencies,dependency.version' for javax.xml.bind:jaxb api:jar is missing.

最低0.47元/天 解锁文章
1074





