- 创建了DemoController类,提供/hello接口返回"Hello World!" - 在pom.xml中添加spring-boot-starter核心依赖 - 将spring-boot-starter-webmvc替换为spring-boot-starter-web - 将spring-boot-starter-webmvc-test替换为spring-boot-starter-test - 添加spring-boot-starter-actuator监控组件 - 注释掉数据库相关依赖以简化项目配置 |
||
|---|---|---|
| .. | ||
| java/com/example/demo | ||
| resources | ||