1.项目目录:
- src
-main
-java
-package
-SpringbootApplication --------------- 程序的入口
-resouces ------------------------------------ resouces 资源文件
- statics -------------------------------- 静态资源
- templates ------------------------------ 模板资源
- application.properties ----------------- 配置文件
-test
- pom ------------------------------------------------ pom文件为基本的依赖管理文件
1.1主函数Demo1Application代码:
package com.example.demo1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
&#