Skip to content

Latest commit

 

History

History
150 lines (116 loc) · 5.41 KB

SpringBoot实战(1)springboot-chapters介绍.md

File metadata and controls

150 lines (116 loc) · 5.41 KB

springboot-chapters 是一个 SpringBoot 学习,并实战练习的项目,通过示例代码,快速简单上手教程

模块总览

包含子模块工程如下:

springboot-hellowordSpringBoot 入门工程
springboot-profilesSpringBoot 配置文件使用分别采用 .properties和 .yml 进行配置并进行多种方式读取
springboot-webSpringBoot Web应用简单实现
springboot-aopSpringBoot  AOP 切面的实现
springboot-asyncSpringBoot  线程异步实现
springboot-sessionSpringBoot  Session 运用
springboot-servlet集成  Servlet 3.0 
springboot-swagger集成 Swagger 2 进行统一 API 接口管理
springboot-jpa集成 JPA 进行数据库操作
springboot-mybatis集成 Mybatis 进行数据操作
springboot-jdbc集成 Jdbc-Tmeplate 进行数据操作
springboot-mybatisplus集成 Mybatis-plus 进行数据库操作分页处理
springboot-multi-db多数据源
springboot-dynamic-db动态数据源运用
springboot-pagehelper集成 PageHelper 进行分页查询
springboot-thymeleaf集成 Thymeleaf 模板引擎
springboot-freemarker集成 Freemarker 模板引擎
springboot-velocity集成 Velocity 模板引擎
springboot-ehcache集成 EhCache进行缓存运用
springboot-redis集成 Redis进行缓存运用
springboot-memcache集成 memcache进行缓存运用
springboot-mongodb集成 MongoDB进行缓存运用
springboot-shiro集成 Shiro 进行权限认证
springboot-security集成 Spring Security 进行权限认证
springboot-sso集成 SSO 单点登录
springboot-logback集成 Logback 进行日志记录
springboot-rabbitmq集成 RabbitMQ  队列
springboot-rocketmq集成 RocketMQ  队列
springboot-activemq集成 ActiveMQ  队列
springboot-kafka集成 kafka 队列
springboot-scheduldSpringBoot 的定时器运用
springboot-quartz集成 Quartz实现定时任务管理
springboot-xxl-job集成 xxl-Job实现定时任务管理
springboot-actuator集成 Actuator 进行监控
springboot-oauth : 集成 OAuth 2
springboot-zookeeper集成 ZooKeeper进行分布式构建
springboot-dubbo集成 Dubbo 微服务
springboot-websocket集成 WebSocket 模块实现后端向前端进行主动推送功能
springboot-elasticsearch集成 ElasticSearch
springboot-sharding-jdbc集成 Sharding-JDBC进行分库分表操作
springboot-fastdfs集成FastDFS 进行在分布式系统中进行文件上传下载等操作
springboot-devtools集成 DevTools 模块进行热部署实现
springboot-mail集成 Mail 模块进行发送邮件

版本说明

依赖名称(artifactId) 版本号 描述
spring-boot-starter 2.2.2.RELEASE springboot 启动类依赖
spring-boot-starter-web 2.2.2.RELEASE springboot web 启动类依赖

主工程POM 文件

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.husy</groupId>
    <artifactId>springboot-chapters</artifactId>
    <version>1.0.0</version>
    <name>springboot-chapters</name>
    <packaging>pom</packaging>

    <modules>
        <module>springboot-helloword</module>
        <module>springboot-profiles</module>
        <module>springboot-web</module>
    </modules>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>

演练说明

子模块工程正在计划中,以下为以实现工程项目

源码

开源地址

资料参考