![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot学习
整理了SpringBoot学习过程中的心得
平林寒山98
这个作者很懒,什么都没留下…
展开
-
2、SpringBoot配置
添加bean文件夹,保存类信息 package com.huawei.testdemo.bean; public class Dog { private String name; private int age; public void setName(String name) { this.name = name; } @Override public String toString() { return "Dog{原创 2020-11-22 16:28:08 · 138 阅读 · 0 评论 -
1、SpringBoot快速创建
创建一个SpringBoot项目 勾选上要用的组件 会自动生成主程序类,用于运行 创建controller包,写业务代码:HelloController package com.huawei.testdemo.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springf原创 2020-11-22 15:16:45 · 187 阅读 · 0 评论