原因是端口占用 解决方案1:
文件 application.properties 添加
# 端口号
server.port=8888
解决方案2:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除自动配置
public class ErukaServerMain {
public static void main(String[] args) {
SpringApplication.run(ErukaServerMain.class,args);
}
}
解决方案3:
如果以上方法不行那就,将pom文件带有数据库相关的删除,例如:jdbc、mysql-connect等等