idea——新建springBoot项目

  1. 启动idea,create new project
    idea——新建springBoot项目

  2. 命名
    idea——新建springBoot项目

  3. 配置导入初始maven
    idea——新建springBoot项目

  4. 存储路径
    idea——新建springBoot项目

  5. 测试启动
    接下来创建一个测试类 ,下面是目录结构和代码 DemoApplication 这个类一定要始终放在最外层
    这里大家注意一下@RestController这个注解 这个注解是@ResponseBody + @Controller的结合体
    合并了他么的功能
    idea——新建springBoot项目
    写完测试类后大家点开 http://localhost:8080/hello 然后出现下面的界面,恭喜大家 !!!
    idea——新建springBoot项目