Skip to content

Commit

Permalink
使用不同模块区分学习案例
Browse files Browse the repository at this point in the history
  • Loading branch information
rhwayfun committed Sep 9, 2017
1 parent 60b97d1 commit 3473b8d
Show file tree
Hide file tree
Showing 27 changed files with 451 additions and 2 deletions.
65 changes: 64 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,69 @@
# spring-boot-learning-examples
springboot知识点整理与工程实践
springboot知识点整理、工程实践,并结合工作案例适当深入

* 使用travis ci持续集成
* 使用code climate进行代码质量检查
* 学习案例以模块方式划分,每隔模块都是独立可执行项目,直接运行Application即可

# 分享平台

我的博客:http://blog.csdn.net/u011116672

Github地址:https://github.com/happyxiaofan

# 项目结构

1. 基础入门

* spring-boot-quickstart(springboot快速入门案例)
* spring-boot-configuration(了解下springboot配置管理)

2. Web开发

* spring-boot-web-jsp(使用JSP作为开发)
* spring-boot-web-thymeleaf(使用模板引擎thymeleaf开发)
* spring-boot-web-bootstrap(bootstrap入门demo)
* spring-boot-security(权限控制项目实战)
* spring-boot-security-cas(集成CAS搭建自己的认证中心)

[spring security实战](http://blog.csdn.net/u011116672/article/details/77428049)


3. 数据存储:缓存
* spring-boot-cache-caffeine
* spring-boot-redis

4. 数据库
* spring-boot-mybatis(mybatis使用快速入门)
* spring-boot-mybatis-multidatasource(mybatis多数据库解决方案)
* spring-boot-mybatis-sharding-jdbc(使用sharding-jdbc对数据库进行分库分表)

5. spring其他功能
* spring-boot-task(定时任务)

[Spring定时任务源码分析](http://blog.csdn.net/u011116672/article/details/77132205)
[深入浅出Spring task定时任务](http://blog.csdn.net/u011116672/article/details/52517247)
* spring-boot-retry(重试和熔断)

[重试框架Spring retry实践](http://blog.csdn.net/u011116672/article/details/77823867)

* spring-boot-aspect(aop相关,静态织入、动态织入)

[AspectJ切面执行两次原因分析](http://blog.csdn.net/u011116672/article/details/63685340)


5. 企业开发进阶
* spring-boot-dubbo(服务治理框架dubbo使用案例)
* spring-boot-disconf(分布式配置管理disconf使用案例)
* spring-boot-elasticsearch(全文搜索引擎elasticsearch实践)
* spring-boot-kafka(消息中间件kafka实践)
* spring-boot-rocketmq(阿里开源消息中间件RocketMQ实践)
* spring-boot-mockito(Java社区最火的测试框架Mockito使用实战)
* spring-boot-hibernate-validation(Hibernate出品的校验框架使用实战)
* spring-boot-geode(内存数据库geode实战,目前应用与内部地址位置距离的计算)
* spring-boot-elastic-job(分布式任务调度框架elastic-job实战)

# 未完待续
更多案例不断补充中。。。如果您觉得对你有用,就给我点个赞吧\(^o^)/~


File renamed without changes.
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,33 @@
<groupId>com.rhwayfun</groupId>
<artifactId>spring-boot-learning-examples</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<modules>
<module>spring-boot-quickstart</module>
<module>spring-boot-mybatis</module>
<module>spring-boot-dubbo</module>
<module>spring-boot-rocketmq</module>
<module>spring-boot-retry</module>
<module>spring-boot-security</module>
<module>spring-boot-cache-caffeine</module>
<module>spring-boot-configuration</module>
<module>spring-boot-aspect</module>
<module>spring-boot-disconf</module>
<module>spring-boot-task</module>
<module>spring-boot-kafka</module>
<module>spring-boot-redis</module>
<module>spring-boot-mockito</module>
<module>spring-boot-elasticsearch</module>
<module>spring-boot-mybatis-multidatasource</module>
<module>spring-boot-hibernate-validation</module>
<module>spring-boot-web-jsp</module>
<module>spring-boot-web-thymeleaf</module>
<module>spring-boot-web-bootstrap</module>
<module>spring-boot-geode</module>
<module>spring-boot-mybatis-sharding-jdbc</module>
<module>spring-boot-elastic-job</module>
<module>spring-boot-security-cas</module>
</modules>
<packaging>pom</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down
15 changes: 15 additions & 0 deletions spring-boot-aspect/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-aspect</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-cache-caffeine/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-cache-caffeine</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-configuration/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-configuration</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-disconf/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-disconf</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-dubbo/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-dubbo</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-elastic-job/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-elastic-job</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-elasticsearch</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-geode/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-geode</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-hibernate-validation/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-hibernate-validation</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-kafka/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-kafka</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-mockito/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-mockito</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-mybatis-multidatasource/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-mybatis-multidatasource</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-mybatis-sharding-jdbc/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-mybatis-sharding-jdbc</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-mybatis/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-mybatis</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-quickstart/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-quickstart</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-redis/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-redis</artifactId>


</project>
15 changes: 15 additions & 0 deletions spring-boot-retry/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-boot-learning-examples</artifactId>
<groupId>com.rhwayfun</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>springboot-retry</artifactId>


</project>
Loading

0 comments on commit 3473b8d

Please sign in to comment.