Skip to content

Commit d5fd399

Browse files
committed
完成项目构建
1 parent 87d2cb2 commit d5fd399

File tree

50 files changed

+939
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+939
-12
lines changed

pom.xml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<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">
43
<modelVersion>4.0.0</modelVersion>
54
<groupId>cn.timebusker</groupId>
65
<artifactId>spring-boot</artifactId>
@@ -15,7 +14,7 @@
1514
<version>1.4.5.RELEASE</version>
1615
</parent>
1716

18-
<!-- 全局依赖设置:引入依赖会自动传递到子模块中 -->
17+
<!-- �典�靘�霈曄蔭嚗��乩�韏��芸隡蕭?嚙賢摮芋�葉 -->
1918
<dependencies>
2019
</dependencies>
2120

@@ -33,8 +32,8 @@
3332

3433
<build>
3534
<finalName>spring-boot</finalName>
36-
<!-- spring-boot-maven-plugin 提供了许多非常便捷的插件,它可以在classpath下收集很多的JAR包, 并能够建立一个独立可运行的JAR包,这让他能够非常方便的运行你的系统服务。
37-
spring-boot-maven-plugin插件 搜索public static void main()方法标记为可运行的类。它提供内置的依赖解析器,用于设置版本号匹配Spring引导依赖。
35+
<!-- spring-boot-maven-plugin ��鈭捂憭�撣訾噶�瑞��辣嚗��臭誑�牢lasspath銝��憭�JAR�� 撟嗉憭遣蝡�銝芰蝡餈��AR��餈悟隞憭�撣豢靘輻�餈�雿�蝟餌��嚙??
36+
spring-boot-maven-plugin�辣 �揣public static void main()�寞��扇銝箏餈��掩�����蔭��韏圾�嚗鈭挽蝵桃��砍�寥�Spring撘紡靘�嚙??
3837
雿隞亥��遙雿��唾����穿�雿摰�暺恕銝慷oot�����祇� -->
3938
<plugins>
4039
<plugin>
@@ -48,19 +47,19 @@
4847
<groupId>org.apache.maven.plugins</groupId>
4948
<artifactId>maven-compiler-plugin</artifactId>
5049
<configuration>
51-
<!-- 源代码使用的开发版本 -->
50+
<!-- 皞誨�蝙�函�嚙??��嚙?? -->
5251
<source>1.8</source>
53-
<!-- 需要生成的目标class文件的编译版本 -->
52+
<!-- 嚙??閬����格�class�辣��霂�嚙?? -->
5453
<target>1.8</target>
55-
<!-- 一般而言,target与source是保持一致的,但是,有时候为了让程序能在其他版本的jdk中运行(对于低版本目标jdk,源代码中需要没有使用低版本jdk中不支持的语法),会存在target不同于source的情况 -->
56-
<!-- 可选项 -->
54+
<!-- 嚙??�穿蕭?嚙質�嚗arget銝ource�臭����渡�嚗��荔���蛹鈭悟蝔��賢�嗡���dk銝剛�嚙??(撖嫣�雿��祉�dk嚗�隞��銝剝�閬瓷�蝙�其��jdk銝凋��舀��祗嚙??)嚗�摮target銝�鈭ource��嚙?? -->
55+
<!-- �荔蕭?嚙賡★ -->
5756
<meminitial>128m</meminitial>
5857
<maxmem>512m</maxmem>
59-
<!-- fork is enable,用于明确表示编译版本配置的可用 -->
58+
<!-- fork is enable,�其��&銵函內蝻���蔭�嚙?? -->
6059
<fork>true</fork>
6160
<compilerVersion>1.3</compilerVersion>
6261
<encoding>UTF-8</encoding>
63-
<!-- 这个选项用来传递编译器自身不包含但是却支持的参数选项 -->
62+
<!-- 餈葵�★�冽隡蕭?嚙賜�霂�芾澈銝��思��臬�舀����堆蕭?嚙賡★ -->
6463
<compilerArgument>-verbose -bootclasspath ${java.home}\lib\rt.jar</compilerArgument>
6564
</configuration>
6665
</plugin>
@@ -70,5 +69,18 @@
7069
<module>spring-boot-1-QuickStart</module>
7170
<module>spring-boot-2-RESTful</module>
7271
<module>spring-boot-3-logs</module>
73-
</modules>
72+
<module>spring-boot-4-Scheduled</module>
73+
<module>spring-boot-5-Async</module>
74+
<module>spring-boot-6-GlobalException</module>
75+
<module>spring-boot-7-EhCache</module>
76+
<module>spring-boot-8-AOP</module>
77+
<module>spring-boot-9-JavaMailSender</module>
78+
<module>spring-boot-10-SpringData</module>
79+
<module>spring-boot-11-SpringSecurity</module>
80+
<module>spring-boot-12-Swagger2</module>
81+
<module>spring-boot-13-MyBatis</module>
82+
<module>spring-boot-14-JdbcTemplate</module>
83+
<module>spring-boot-15-Redis</module>
84+
<module>spring-boot-16-Transcation</module>
85+
</modules>
7486
</project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.settings/
2+
target/
3+
.classpath
4+
.project
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
----
2+
## [spring-boot-3-logs spring boot 整合多个日志框架](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/)
3+
4+
## 良好日志架构:SLF4J + Log4j/Log4j2/Logback
5+
6+
## 日志架构性能比较:日志性能比较:Log4j < Logback < Log4j2
7+
8+
### 项目阐述——spring boot 整合多个日志框架:Log4j、Log4j2、Logback
9+
![image](https://github.com/timebusker/spring-boot/raw/master/static/spring-boot-3-logs/logging.png?raw=true)
10+
![image](https://github.com/timebusker/spring-boot/raw/master/static/spring-boot-3-logs/SLF4J.png?raw=true)
11+
12+
+ #### [spring-boot 整合Log4j](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Log4j/)
13+
* spring-boot 1.4.x.RELEASE 将不再支持
14+
* Log4j配置说明
15+
* Log4j配置信息
16+
* 配置多环境不同日志级别
17+
18+
+ #### [spring-boot 整合Log4j2](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Log4j2/)
19+
* Log4j2配置说明
20+
* Log4j2配置信息
21+
* 配置多环境不同日志级别
22+
23+
+ #### [spring-boot 整合Logback](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Logback/)
24+
* spring boot 1.4.X默认日志框架为 SLF4J+Logback
25+
* Logback 配置信息
26+
* 配置多环境不同日志级别
27+
28+
----
29+
30+
### 相关文章
31+
- [混乱的 Java 日志体系](http://note.youdao.com/noteshare?id=8ee5d113de15c2bee1d36be76dddd717)
32+
- [为什么要使用SLF4J而不是Log4J](http://note.youdao.com/noteshare?id=f47db61d63b5254c76cd9404ef5c83e6)
33+
- [在 Web 应用中增加用户跟踪功能——学习在多线程环境下 Apache Log4j 的 NDC和MDC 开发](http://note.youdao.com/noteshare?id=9e15b0c68bedf37147965b213203de99)
34+
- [log4j+logback+slf4j+commons-logging的关系与调试](http://www.cnblogs.com/zhuawang/p/3999235.html)

spring-boot-10-SpringData/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>cn.timebusker</groupId>
6+
<artifactId>spring-boot</artifactId>
7+
<version>2.0.0</version>
8+
</parent>
9+
<artifactId>spring-boot-10-SpringData</artifactId>
10+
<name>spring-boot-10-SpringData</name>
11+
<url>http://maven.apache.org</url>
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
<dependencies>
16+
</dependencies>
17+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package cn.timebusker.spring_boot_10_SpringData;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.settings/
2+
target/
3+
.classpath
4+
.project
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
----
2+
## [spring-boot-3-logs spring boot 整合多个日志框架](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/)
3+
4+
## 良好日志架构:SLF4J + Log4j/Log4j2/Logback
5+
6+
## 日志架构性能比较:日志性能比较:Log4j < Logback < Log4j2
7+
8+
### 项目阐述——spring boot 整合多个日志框架:Log4j、Log4j2、Logback
9+
![image](https://github.com/timebusker/spring-boot/raw/master/static/spring-boot-3-logs/logging.png?raw=true)
10+
![image](https://github.com/timebusker/spring-boot/raw/master/static/spring-boot-3-logs/SLF4J.png?raw=true)
11+
12+
+ #### [spring-boot 整合Log4j](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Log4j/)
13+
* spring-boot 1.4.x.RELEASE 将不再支持
14+
* Log4j配置说明
15+
* Log4j配置信息
16+
* 配置多环境不同日志级别
17+
18+
+ #### [spring-boot 整合Log4j2](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Log4j2/)
19+
* Log4j2配置说明
20+
* Log4j2配置信息
21+
* 配置多环境不同日志级别
22+
23+
+ #### [spring-boot 整合Logback](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/spring-boot-3-logs-Logback/)
24+
* spring boot 1.4.X默认日志框架为 SLF4J+Logback
25+
* Logback 配置信息
26+
* 配置多环境不同日志级别
27+
28+
----
29+
30+
### 相关文章
31+
- [混乱的 Java 日志体系](http://note.youdao.com/noteshare?id=8ee5d113de15c2bee1d36be76dddd717)
32+
- [为什么要使用SLF4J而不是Log4J](http://note.youdao.com/noteshare?id=f47db61d63b5254c76cd9404ef5c83e6)
33+
- [在 Web 应用中增加用户跟踪功能——学习在多线程环境下 Apache Log4j 的 NDC和MDC 开发](http://note.youdao.com/noteshare?id=9e15b0c68bedf37147965b213203de99)
34+
- [log4j+logback+slf4j+commons-logging的关系与调试](http://www.cnblogs.com/zhuawang/p/3999235.html)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>cn.timebusker</groupId>
6+
<artifactId>spring-boot</artifactId>
7+
<version>2.0.0</version>
8+
</parent>
9+
<artifactId>spring-boot-11-SpringSecurity</artifactId>
10+
<name>spring-boot-11-SpringSecurity</name>
11+
<url>http://maven.apache.org</url>
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
<dependencies>
16+
</dependencies>
17+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package cn.timebusker.spring_boot_11_SpringSecurity;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}

spring-boot-12-Swagger2/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.settings/
2+
target/
3+
.classpath
4+
.project

0 commit comments

Comments
 (0)