![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java个人项目
acaointerbill
这个作者很懒,什么都没留下…
展开
-
Springboot相关注解
(1)@SpringBootApplication (2)@RestController 和@Controller的区别:@Controller使用它标记的类就是一个SpringMvc Controller对象,返回一个页面;@RestController 相当于@Controller+@ResponseBody两个注解的结合,返回json数据。 ...原创 2020-04-16 22:03:53 · 114 阅读 · 0 评论 -
创建Springboot项目要点
(1)在IDEA中new project时选择Spring Initializr (2)运行项目,当出现"Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured."错误时,原因是数据源未配置。 (3) ...原创 2020-04-16 22:00:30 · 161 阅读 · 0 评论