Skip to content

Commit 3473b8d

Browse files
author
rhwayfun
committed
使用不同模块区分学习案例
1 parent 60b97d1 commit 3473b8d

File tree

27 files changed

+451
-2
lines changed

27 files changed

+451
-2
lines changed

README.md

+64-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,69 @@
11
# spring-boot-learning-examples
2-
springboot知识点整理与工程实践
2+
springboot知识点整理、工程实践,并结合工作案例适当深入
33

44
* 使用travis ci持续集成
55
* 使用code climate进行代码质量检查
6+
* 学习案例以模块方式划分,每隔模块都是独立可执行项目,直接运行Application即可
7+
8+
# 分享平台
9+
10+
我的博客:http://blog.csdn.net/u011116672
11+
12+
Github地址:https://github.com/happyxiaofan
13+
14+
# 项目结构
15+
16+
1. 基础入门
17+
18+
* spring-boot-quickstart(springboot快速入门案例)
19+
* spring-boot-configuration(了解下springboot配置管理)
20+
21+
2. Web开发
22+
23+
* spring-boot-web-jsp(使用JSP作为开发)
24+
* spring-boot-web-thymeleaf(使用模板引擎thymeleaf开发)
25+
* spring-boot-web-bootstrap(bootstrap入门demo)
26+
* spring-boot-security(权限控制项目实战)
27+
* spring-boot-security-cas(集成CAS搭建自己的认证中心)
28+
29+
[spring security实战](http://blog.csdn.net/u011116672/article/details/77428049)
30+
31+
32+
3. 数据存储:缓存
33+
* spring-boot-cache-caffeine
34+
* spring-boot-redis
35+
36+
4. 数据库
37+
* spring-boot-mybatis(mybatis使用快速入门)
38+
* spring-boot-mybatis-multidatasource(mybatis多数据库解决方案)
39+
* spring-boot-mybatis-sharding-jdbc(使用sharding-jdbc对数据库进行分库分表)
40+
41+
5. spring其他功能
42+
* spring-boot-task(定时任务)
43+
44+
[Spring定时任务源码分析](http://blog.csdn.net/u011116672/article/details/77132205)
45+
[深入浅出Spring task定时任务](http://blog.csdn.net/u011116672/article/details/52517247)
46+
* spring-boot-retry(重试和熔断)
47+
48+
[重试框架Spring retry实践](http://blog.csdn.net/u011116672/article/details/77823867)
49+
50+
* spring-boot-aspect(aop相关,静态织入、动态织入)
51+
52+
[AspectJ切面执行两次原因分析](http://blog.csdn.net/u011116672/article/details/63685340)
53+
54+
55+
5. 企业开发进阶
56+
* spring-boot-dubbo(服务治理框架dubbo使用案例)
57+
* spring-boot-disconf(分布式配置管理disconf使用案例)
58+
* spring-boot-elasticsearch(全文搜索引擎elasticsearch实践)
59+
* spring-boot-kafka(消息中间件kafka实践)
60+
* spring-boot-rocketmq(阿里开源消息中间件RocketMQ实践)
61+
* spring-boot-mockito(Java社区最火的测试框架Mockito使用实战)
62+
* spring-boot-hibernate-validation(Hibernate出品的校验框架使用实战)
63+
* spring-boot-geode(内存数据库geode实战,目前应用与内部地址位置距离的计算)
64+
* spring-boot-elastic-job(分布式任务调度框架elastic-job实战)
65+
66+
# 未完待续
67+
更多案例不断补充中。。。如果您觉得对你有用,就给我点个赞吧\(^o^)/~
68+
669

File renamed without changes.

pom.xml

+27-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,33 @@
66
<groupId>com.rhwayfun</groupId>
77
<artifactId>spring-boot-learning-examples</artifactId>
88
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
9+
<modules>
10+
<module>spring-boot-quickstart</module>
11+
<module>spring-boot-mybatis</module>
12+
<module>spring-boot-dubbo</module>
13+
<module>spring-boot-rocketmq</module>
14+
<module>spring-boot-retry</module>
15+
<module>spring-boot-security</module>
16+
<module>spring-boot-cache-caffeine</module>
17+
<module>spring-boot-configuration</module>
18+
<module>spring-boot-aspect</module>
19+
<module>spring-boot-disconf</module>
20+
<module>spring-boot-task</module>
21+
<module>spring-boot-kafka</module>
22+
<module>spring-boot-redis</module>
23+
<module>spring-boot-mockito</module>
24+
<module>spring-boot-elasticsearch</module>
25+
<module>spring-boot-mybatis-multidatasource</module>
26+
<module>spring-boot-hibernate-validation</module>
27+
<module>spring-boot-web-jsp</module>
28+
<module>spring-boot-web-thymeleaf</module>
29+
<module>spring-boot-web-bootstrap</module>
30+
<module>spring-boot-geode</module>
31+
<module>spring-boot-mybatis-sharding-jdbc</module>
32+
<module>spring-boot-elastic-job</module>
33+
<module>spring-boot-security-cas</module>
34+
</modules>
35+
<packaging>pom</packaging>
1036

1137
<parent>
1238
<groupId>org.springframework.boot</groupId>

spring-boot-aspect/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-aspect</artifactId>
13+
14+
15+
</project>

spring-boot-cache-caffeine/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-cache-caffeine</artifactId>
13+
14+
15+
</project>

spring-boot-configuration/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-configuration</artifactId>
13+
14+
15+
</project>

spring-boot-disconf/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-disconf</artifactId>
13+
14+
15+
</project>

spring-boot-dubbo/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-dubbo</artifactId>
13+
14+
15+
</project>

spring-boot-elastic-job/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-elastic-job</artifactId>
13+
14+
15+
</project>

spring-boot-elasticsearch/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-elasticsearch</artifactId>
13+
14+
15+
</project>

spring-boot-geode/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-geode</artifactId>
13+
14+
15+
</project>
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-hibernate-validation</artifactId>
13+
14+
15+
</project>

spring-boot-kafka/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-kafka</artifactId>
13+
14+
15+
</project>

spring-boot-mockito/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-mockito</artifactId>
13+
14+
15+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-mybatis-multidatasource</artifactId>
13+
14+
15+
</project>
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>spring-boot-mybatis-sharding-jdbc</artifactId>
13+
14+
15+
</project>

spring-boot-mybatis/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-mybatis</artifactId>
13+
14+
15+
</project>

spring-boot-quickstart/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-quickstart</artifactId>
13+
14+
15+
</project>

spring-boot-redis/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-redis</artifactId>
13+
14+
15+
</project>

spring-boot-retry/pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>spring-boot-learning-examples</artifactId>
7+
<groupId>com.rhwayfun</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>springboot-retry</artifactId>
13+
14+
15+
</project>

0 commit comments

Comments
 (0)