springboot
文章平均质量分 52
wuwh无非
这个作者很懒,什么都没留下…
展开
-
Spring Boot系列04-AOP配置
阅读这篇博文时,假定读者已经掌握了Spring Boot+maven开发应用的入门技巧, 初次接触Spring Boot,那也没关系,移步Spring Boot + maven 开发的入门教程,10分钟完成你的第一个Spring Boot应用1. 使用的核心技术动态代理没有接触过设计模式的同学,请移步设计模式02-动态代理模式, 先了解动态代理设计模式,有助于理解Spring AOP的原理2.原创 2017-10-28 21:46:05 · 3519 阅读 · 0 评论 -
Spring Boot系列02-Spring Boot + JSP 整合进行网页开发
IDE创建maven web项目ArtifactId选maven-archetype-webapp最简单pom依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.原创 2017-10-26 13:21:58 · 7041 阅读 · 3 评论 -
Spring Boot系列01-Spring Boot + maven 实现Hello World
IDE中创建maven项目最简pom依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.8.RELEASE</version></parent><dependencies> <d原创 2017-10-26 11:59:43 · 3016 阅读 · 0 评论 -
Spring Boot系列03 - 配置文件使用
主配置文件使用Spring Boot的主配置文件默认为application.properties,必须放在源代码文件夹根目录下,一般放在src/main/resources下application.propertiesspring.mvc.view.prefix=/WEB-INF/views/spring.mvc.view.suffix=.jspserver.port=9080使用主配置文件中原创 2017-10-26 14:26:19 · 2977 阅读 · 0 评论 -
Spring Boot源码01-AnnotationConfigServletWebServerApplicationContext的子子孙孙
层级结构class AnnotationConfigServletWebServerApplicationContext extends ServletWebServerApplicationContext implements AnnotationConfigRegistry class ServletWebServerApplicationContext extends Generic原创 2018-03-20 10:51:17 · 7067 阅读 · 0 评论 -
Spring Boot 源码02- 核心调度方法SpringApplication.run
public ConfigurableApplicationContext run(String... args) { StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicationContext context = null; Collection<SpringBootEx...原创 2018-03-27 10:07:26 · 236 阅读 · 0 评论 -
spring boot 06 - 集成mybatis多数据源动态切换
核心思路:通过MapperScan注解直接指定每套数据库各自扫描的mapper所在包路径最终的代码目录结构如下:参考前一篇博客-Spring Boot 05-集成mybatis需要做如下修改:pom.xml把spring boot的版本从2.0.2,换成1.5.9<parent> <groupId>org.springframework.boot</group...原创 2018-06-07 11:15:31 · 285 阅读 · 0 评论 -
Spring Boot 05-集成mybatis
0. 最终的代码层级结构:1. pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ht原创 2018-05-31 15:30:27 · 215 阅读 · 0 评论