Spring boot
java漫步天下
生命不息,奋斗不止!挺住,意味着一切!
展开
-
在Eclipse中搭建Spring boot项目
公司中的项目了使用微服务架构,使用springcloud以及它集成的一些相关项目,因此虽然在其他方面的很多技术上还感觉急需提高,却又不得不以工作为重,先放下其他来了解一下这方面的技术。其实spring cloud是建立在spring boot的基础上的,我之前也学过spring boot,所以一切还算轻车熟路吧。spring boot的理念是“习惯优于配置”,我个人的理解就是尽量减少开发过程中手动...原创 2018-04-03 13:46:26 · 1456 阅读 · 0 评论 -
Spring cloud中 @Controller和@RestController的区别?
官方文档:@RestController is a stereotype annotation that combines @ResponseBody and @Controller.意思是:@RestController = @Controller + @ResponseBody1.如果只是使用@RestController注解Controller,则Controller中的方法无法返回jsp页...原创 2018-04-03 14:05:50 · 2590 阅读 · 0 评论