SpringBoot随笔
程序员文章站
2022-04-19 19:08:24
...
SpringBoot随笔
1.maven springboot 依赖
<?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>gree.com</groupId>
<artifactId>springbootproject</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.8.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.35</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.8.RELEASE</version>
<configuration>
<mainClass>SpringRestApplication</mainClass>
<layout>ZIP</layout>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
</project>
下一篇: springboot配置文件详解
推荐阅读
-
java学习实验随笔-------如何从键盘输入数据并保存到数组中
-
SpringBoot框架与MyBatis集成,连接Mysql数据库
-
SpringBoot思维导图(SpringBoot基础部分汇总)
-
SpringBoot CountDownLatch多任务并行处理的实现方法
-
SpringBoot 多任务并行+线程池处理的实现
-
SpringBoot JdbcTemplate批量操作的示例代码
-
基于Springboot2.0构建ES的多客户端
-
springboot项目打成war包部署到tomcat遇到的一些问题
-
springboot 打包部署 共享依赖包(分布式开发集中式部署微服务)
-
SpringBoot实现动态定时任务