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项目

相关文章:

  • 2021-07-03
  • 2021-08-06
  • 2021-12-04
  • 2021-04-22
  • 2021-03-30
  • 2021-12-18
  • 2021-08-06
  • 2021-07-03
猜你喜欢
  • 2021-08-06
  • 2021-08-22
  • 2021-07-10
  • 2021-08-07
  • 2022-01-05
相关资源
相似解决方案