1.pom文件
starter-parent,starter-web
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.flying</groupId>
<artifactId>boot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>boot</name>
<description>boot</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<!-- Spring boot 父引用-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version>
</parent>
<!-- Spring boot 核心web-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
2.自动依赖配置
https://blog.csdn.net/hackerHL/article/details/78274022
3.核心注解@SpringBootApplication
这里主要关注@SpringBootApplication注解,它包括三个注解:
@Configuration:表示将该类作用springboot配置文件类。
@EnableAutoConfiguration:表示程序启动时,自动加载springboot默认的配置。
@ComponentScan:表示程序启动是,自动扫描当前包及子包下所有类。
4.Spring Boot 非web应用程序实例
https://blog.csdn.net/lxh18682851338/article/details/78559595
5.JavaConfig注入方式
https://blog.csdn.net/u010088415/article/details/79212285
6.集成log4j2
boot默认是logback
https://blog.csdn.net/woniu211111/article/details/54347846
log4j2配置文件详解:http://z724130632.iteye.com/blog/2319988
生成有日期的文件:https://www.cnblogs.com/exmyth/p/5885703.html
log放在独立的文件中:https://blog.csdn.net/a1017680279/article/details/79212848
java日志管理:
https://blog.csdn.net/u012269267/article/details/54407209
Logger.getLogger()和LogFactory.getLog()的区别
1.Logger.getLogger()是使用log4j的方式记录日志;
2.LogFactory.getLog()则来自apache的common-logging包
3.LoggerFactory.getLogger()则来自slf4j的包
logback:
boot日至配置:https://blog.csdn.net/gwd1154978352/article/details/78344091
https://www.cnblogs.com/dtgxly/p/7018392.html?utm_source=itdadao&utm_medium=referral
7.集成json
常用的JSON技术有,json-lib、Jackson、Gson、FastJson
gson替代jackson:
https://www.jianshu.com/p/b2b6ba67dfb8
jackson:
https://blog.csdn.net/u014411966/article/details/78171126?locationNum=4&fps=1
实用工具:https://www.cnblogs.com/dupang/p/5673097.html
fastjson:
https://www.jianshu.com/p/aabd308ac963
9.httpclient
10.文件上传
11.集成mybatis
oracle驱动包报错:
https://www.cnblogs.com/JAVA-STUDYER/p/7103114.html?utm_source=itdadao&utm_medium=referral
springboot集成mybatis:https://blog.csdn.net/gebitan505/article/details/54929287
idea版本集成:https://blog.csdn.net/winter_chen001/article/details/77249029
mybatis插入空值问题:http://makemyownlife.iteye.com/blog/1610021
mybatis动态sql用法:https://www.cnblogs.com/holly8/p/6026295.html
整合drooid:https://blog.csdn.net/qq_28988969/article/details/79208797
批量导入数据:
https://blog.csdn.net/MaxElephant/article/details/78587517
https://blog.csdn.net/z69183787/article/details/51582798
oracle批量更新和插入(sql形式):https://www.cnblogs.com/feixian/p/5960111.html
Cause: java.sql.SQLSyntaxErrorException: ORA-01745: 无效的主机/绑定变量名;
https://www.aliyun.com/jiaocheng/787683.html
因为拼接sql方式一旦数据量超过3000以上,sql长度有限制!!只能采用jdbc方式批量插入
jdbcTempllate集成:
https://www.cnblogs.com/web424/p/6756342.html
boot项目启动预先加载:CommandLineRunner,扩展SpringApplication
https://www.cnblogs.com/mr-wuxiansheng/p/7672598.html
普通类获取容器管理的类:扩展SpringContext
https://www.cnblogs.com/mrx520/p/7802831.html
通用Mapper:
https://blog.csdn.net/dwf_android/article/details/79359360
分页pageHelper:
批量插入数据:https://blog.csdn.net/z69183787/article/details/51582798
12.单元测试和jekens
Jenkins集成Maven代码覆盖率插件Cobertura: https://blog.csdn.net/boonya/article/details/77448680
SpringBoot Controller单元测试MockMvc: https://blog.csdn.net/runner1920/article/details/79077527
单元测试@springboottest 报错Failed to load ApplicationContext,默认走logback
手动加载日志文件:https://blog.csdn.net/u013378306/article/details/52102611
spring单元测试:https://blog.csdn.net/u013803262/article/details/52253825?readlog
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
@Test
public void testRun(){}
注:boot集成log4j2,单元测试出现问题
13.Spring boot 打成jar包问题总结
https://www.cnblogs.com/xingzc/p/5972488.html
14.druid连接池
https://blog.csdn.net/blueheart20/article/details/52384032
15.boot读取静态数据
https://blog.csdn.net/zhangjie0412/article/details/80415453
16.spring事务transction详解
https://www.cnblogs.com/yepei/p/4716112.html
分布式事务:
https://blog.csdn.net/liaohaojian/article/details/68488150
跨域cors:
https://segmentfault.com/a/1190000012063684