随笔分类 -  Spring Boot

Spring boot 梳理 - 配置eclipse集成maven,并开发Spring boot hello
摘要:@RestController @EnableAutoConfiguration public class App { @RequestMapping("/hello") public HashMap hello(){ HashMap result=new HashMap(); result.put("name", "jt"); ... 阅读全文

posted @ 2018-12-15 22:18 手握太阳 阅读(178) 评论(0) 推荐(0)

Spring boot 官网学习笔记 - Using Spring Boot without the Parent POM,但是还要使用Parent POM提供的便利
摘要:If you do not want to use the spring-boot-starter-parent, you can still keep the benefit of the dependency management (but not the plugin management) by using a scope=import dependency, as follows: ... 阅读全文

posted @ 2018-12-10 22:16 手握太阳 阅读(544) 评论(0) 推荐(0)

Spring boot 官网学习笔记 - 开发第一个Spring boot web应用程序(使用mvn执行、使用jar执行)
摘要:关于spring-boot-starter-parent:You should need to specify only the Spring Boot version number on this dependency. If you import additional starters, you 阅读全文

posted @ 2018-12-10 21:29 手握太阳 阅读(293) 评论(0) 推荐(0)

Spring boot 官网学习笔记 - Spring Boot CLI 入门案例
摘要:安装CLI https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.1.1.RELEASE/spring-boot-cli-2.1.1.RELEASE-bin.zip 解压后即可使用,免安装。解压位置 F:\tool\java\spring-boot-cli-2.1.1.RELEASE-bin\sprin... 阅读全文

posted @ 2018-12-09 21:54 手握太阳 阅读(356) 评论(0) 推荐(0)

Spring Boot 梳理 - 4个核心
摘要:Spring的JdbcTemplate是不是在Classpath里?如果是,并且有DataSource的Bean,则自动配置一个JdbcTemplate的Bean。  Thymeleaf是不是在Classpath里?如果是,则配置Thymeleaf的模板解析器、视图解析器以及模板引擎。 Sprin 阅读全文

posted @ 2018-11-25 08:59 手握太阳 阅读(2091) 评论(0) 推荐(0)

导航