Spring Boot应用程序显示没有错误,但tomcat未初始化且application.properties未使用

问题描述 投票:0回答:0

我使用Spring Initializr创建了一个新项目,并使用Intellij IDEA版本2020.3.2 ide打开它。在maven安装了pom.xml文件中的所有依赖项之后,我运行了DemoApplication类中的main方法。我没有添加任何与 Spring Initializr 创建的默认项目不同的新内容或不同内容。

出现两个问题:

1- 控制台只输出这3条日志,Tomcat没有初始化

2021-02-03 23:48:45.073 INFO 15872 --- [ main] com.example.DemoApplication: 在 DESKTOP-M 上使用 Java 1.8.0_281 启动 DemoApplication,PID 为 15872 (D:\demo arge

spring spring-boot maven tomcat intellij-idea
© www.soinside.com 2019 - 2024. All rights reserved.