1 Star 0 Fork 26

宁宁/spring-boot-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 18.63 KB
一键复制 编辑 原始数据 按行查看 历史
努力ing 提交于 2019-10-20 21:13 . 整合Guava
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cn.boot</groupId>
<artifactId>spring-boot-sample</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<modules>
<module>sample-api</module>
<module>sample-dal</module>
<module>sample-business</module>
<module>sample-server</module>
<module>sample-server-druid</module>
<module>sample-server-jpa</module>
<module>sample-server-more</module>
<module>sample-amqp</module>
<module>sample-security</module>
<module>sample-security-core</module>
<module>sample-security-browser</module>
<module>sample-security-app</module>
<module>sample-redis</module>
<module>sample-mongo</module>
<module>sample-webflux</module>
<module>sample-wechat</module>
<module>sample-wechat-tool</module>
<module>sample-server-jpa-more</module>
<module>sample-mongo-api</module>
<module>sample-apollo</module>
<module>sample-kafka</module>
<module>sample-kafka-origin</module>
<module>sample-geoip2</module>
<module>sample-hazelcast</module>
<module>sample-rocketmq</module>
<module>sample-zookeeper</module>
<module>sample-hazelcast-client</module>
<module>sample-guava</module>
</modules>
<properties>
<!-- maven -->
<jdk.version>1.8</jdk.version>
<jdk.encoding>UTF-8</jdk.encoding>
<!--spring boot-->
<spring-boot.version>2.1.7.RELEASE</spring-boot.version>
<mybatis-spring-boot-starter.version>2.1.0</mybatis-spring-boot-starter.version>
<!--pagehelper-->
<pagehelper-spring-boot-starter.version>1.2.12</pagehelper-spring-boot-starter.version>
<pagehelper.version>5.1.10</pagehelper.version>
<!--swagger-->
<swagger-starter.version>1.0.3-RELEASE</swagger-starter.version>
<swagger.version>2.9.2</swagger.version>
<!-- main -->
<mybatis-generator-core.version>1.3.7</mybatis-generator-core.version>
<mysql-connector-java.versioin>5.1.47</mysql-connector-java.versioin>
<lombok.versioin>1.18.8</lombok.versioin>
<hutool.version>4.6.4</hutool.version>
<!-- common tools-->
<commons-lang3.version>3.9</commons-lang3.version>
<commons-io.version>2.6</commons-io.version>
<!--dubbo-->
<dubbo.version>2.7.3</dubbo.version>
<dubbo-serialization-kryo.version>2.7.3</dubbo-serialization-kryo.version>
<dubbo-spring-boot-starter.version>2.7.3</dubbo-spring-boot-starter.version>
<!--guava-->
<guava.version>27.1-jre</guava.version>
<!--rabbitmq-->
<rabbitmq.version>5.7.2</rabbitmq.version>
<!--uid-->
<com.baidu.fsg.uid.version>1.0.1-SNAPSHOT</com.baidu.fsg.uid.version>
<!--tk.mybatis-->
<tk.mybatis.mapper.version>2.1.5</tk.mybatis.mapper.version>
<tk.mybatis.mapper.generator.version>4.1.5</tk.mybatis.mapper.generator.version>
<persistence-api.version>1.0</persistence-api.version>
<!--security-->
<spring-cloud-starter-oauth2.version>2.1.3.RELEASE</spring-cloud-starter-oauth2.version>
<spring-social.version>1.1.6.RELEASE</spring-social.version>
<spring-session.version>2.1.7.RELEASE</spring-session.version>
<!--druid-->
<druid.version>1.1.18</druid.version>
<!--weixin-tool-->
<weixin-tool.version>3.5.0</weixin-tool.version>
<!--apollo-->
<apollo.version>1.4.0</apollo.version>
<!--kafka-->
<spring-kafka.version>2.2.8.RELEASE</spring-kafka.version>
<kafka-clients.version>2.3.0</kafka-clients.version>
<!--hazelcast-->
<hazelcast.version>3.12.3</hazelcast.version>
<!--RocketMQ-->
<rocketmq.version>4.5.2</rocketmq.version>
<!--oshi-->
<oshi.version>4.0.0</oshi.version>
<jna.version>5.4.0</jna.version>
<!-- plugins -->
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
<maven-jar-plugin.version>2.3.1</maven-jar-plugin.version>
<mybatis-generator-maven-plugin.version>1.3.7</mybatis-generator-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!--model-->
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-mongo-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-dal</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-security-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-security-browser</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.cn.boot</groupId>
<artifactId>sample-security-app</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Spring Boot依赖配置-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--rabbitmq-->
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>${rabbitmq.version}</version>
</dependency>
<!--spring-security-->
<!--<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
<version>${spring-cloud-starter-oauth2.version}</version>
</dependency>-->
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!--spring-social-->
<!--<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-config</artifactId>
<version>${spring-social.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-core</artifactId>
<version>${spring-social.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-security</artifactId>
<version>${spring-social.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-web</artifactId>
<version>${spring-social.version}</version>
</dependency>-->
<!--spring-session-->
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<version>${spring-session.version}</version>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<!-- pagehelper -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>${pagehelper.version}</version>
</dependency>
<!-- swagger -->
<dependency>
<groupId>io.github.wilson-he</groupId>
<artifactId>swagger2-spring-boot-starter</artifactId>
<version>${swagger-starter.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
</dependency>
<!-- dubbo -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-bom</artifactId>
<version>${dubbo.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>${dubbo-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-serialization-kryo</artifactId>
<version>${dubbo-serialization-kryo.version}</version>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java.versioin}</version>
</dependency>
<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.versioin}</version>
</dependency>
<!--commons-->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<!--guava-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!--uid-->
<dependency>
<groupId>com.baidu.fsg</groupId>
<artifactId>uid-generator</artifactId>
<version>${com.baidu.fsg.uid.version}</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--tk.mybatis-->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>${tk.mybatis.mapper.version}</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>${tk.mybatis.mapper.generator.version}</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>${persistence-api.version}</version>
</dependency>
<!--druid-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid.version}</version>
</dependency>
<!--weixin-tool-->
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-mp</artifactId>
<version>${weixin-tool.version}</version>
</dependency>
<!-- apollo配置中心-->
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
<version>${apollo.version}</version>
</dependency>
<!--spring-kafka-->
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<version>${spring-kafka.version}</version>
</dependency>
<!-- kafka-clients -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${kafka-clients.version}</version>
</dependency>
<!--hazelcast-->
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-spring</artifactId>
<version>${hazelcast.version}</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>${hazelcast.version}</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>${hazelcast.version}</version>
</dependency>
<!--RocketMQ-->
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-client</artifactId>
<version>${rocketmq.version}</version>
</dependency>
<!--oshi-->
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-core</artifactId>
<version>${oshi.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>${jna.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>${jna.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profileActive>dev</profileActive>
</properties>
</profile>
<profile>
<id>test</id>
<properties>
<profileActive>test</profileActive>
</properties>
</profile>
</profiles>
<build>
<resources>
<resource>
<!--配置文件路径 -->
<directory>src/main/resources</directory> <!--这里对应项目存放配置文件的目录-->
<!--开启filtering功能 -->
<filtering>true</filtering>
<excludes>
<exclude>dev/**</exclude>
<exclude>test/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/${profileActive}</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<!-- Java编译插件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>${jdk.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<!-- Jar打包插件 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<outputDirectory>target</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/kanojo/spring-boot-sample.git
git@gitee.com:kanojo/spring-boot-sample.git
kanojo
spring-boot-sample
spring-boot-sample
master

搜索帮助