spring-boot的部分demo,部分参考了http://www.iocoder.cn/
模块 | 介绍 |
---|---|
demo-admin | spring-boot-admin模块 |
demo-common | 公共模块 |
demo-dynamic-datasource | springboot多数据demo |
demo-elasticsearch6 | springboot结合es |
demo-elasticsearch7 | springboot结合es |
demo-encrypt | 测试springboot结合加密 |
demo-interview | 面试练习 |
demo-junit | junit单元测试案例 |
demo-jwt | jwt token-demo |
demo-liquibase | liquibase使用教程 |
demo-minio | minio文件上传demo |
demo-mybatis-plus | springboot结合mybatisplus并且配置多数据源和ps6py打印日志 |
demo-nacos | nacos的基本代码 |
demo-oauth2 | oauth2单点登录 |
demo-office | office(excel/word/ppt)等操作 |
demo-quartz | 定时任务 |
demo-rabbitmq | rabbitmq |
demo-redis | redis操作demo |
demo-rocketmq | rocketmq |
demo-security | security安全代码 |
demo-sentinel | 结合sentinel |
demo-skywalking | skywalking链路追踪 |
demo-spi | 整合spi |
demo-swagger | swagger2 knife4j-ui |
demo-validation | spring数据校验 |
demo-web | web常用代码 |
demo-webflux | spring-webflux简单使用教程 |
demo-websocket | spring和netty-websocket结合使用代码 |
如果遇到Lombok失效,请升级Lombok的版本
参考demo-web
中的pom文件
<build>
<finalName>demo</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<configuration> <!-- 这里添加启动路径 -->
<mainClass>com.remember.demo.web.SpringBootDemoWebApplication</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>