在学习的时候常建新的项目,mark下商用的jar
org.mybatis mybatis 3.5.0 MysqL MysqL-connector-java 8.0.14 org.testng testng 6.14.3 test
自身使用的springboot项目中比较全的pom.xml
有阿里镜像
有swagger
有日志
有常见的数据库加密依赖的jar
Highlighter">
4.0.0 <repositories> <repository> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <groupId>com.jasmine.buglist</groupId> <artifactId>buglist</artifactId> <version>4.4.1</version> <name>bugSystem</name> <packaging>jar</packaging> <description>Buglist project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.microsoft.<a href="https://www.jb51.cc/tag/sql/" target="_blank" class="keywords">sql</a>server</groupId> <artifactId>ms<a href="https://www.jb51.cc/tag/sql/" target="_blank" class="keywords">sql</a>-jdbc</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>com.microsoft.<a href="https://www.jb51.cc/tag/sql/" target="_blank" class="keywords">sql</a>server</groupId> <artifactId><a href="https://www.jb51.cc/tag/sql/" target="_blank" class="keywords">sql</a>jdbc4</artifactId> <version>4.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId><a href="https://www.jb51.cc/tag/MysqL/" target="_blank" class="keywords">MysqL</a></groupId> <artifactId><a href="https://www.jb51.cc/tag/MysqL/" target="_blank" class="keywords">MysqL</a>-connector-java</artifactId> </dependency> <!--log--> <!--<dependency>--> <!--<groupId>org.projectlombok</groupId>--> <!--<artifactId>lombok</artifactId>--> <!--<optional>true</optional>--> <!--</dependency>--> <!--swagger2--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.2.2</version> </dependency> <!-- 数据库加密 --> <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
原文链接:https://www.f2er.com/springboot/73201.html