构建Springboot项目+后期集成

如果有什么不对的,,, 请指正 ,我还在进步!!!

搭建环境

------现在用IDEA可以直接集成很多类型,由于也是新手,加上环境都是公司大哥搞得,自己没有进步的实践环节,所以来这个试试手记录下自己!
(1) IDEA 快速构建如下
File —>new Project
构建Springboot项目+后期集成
next
构建Springboot项目+后期集成
Artufact 不能用大写的
构建Springboot项目+后期集成
一般这几个就够了。。

完成构建~ ~!对这就完事了!

我不想那么简单(锻炼下自己~~)

那么正题开始。。

手动搭建环境(重点)

(1)老规矩
File —>new Project
构建Springboot项目+后期集成
next

构建Springboot项目+后期集成
无脑 next

完成后目录如下(没有的自己建)颜色不对不要怕等配置完pom 就好了

构建Springboot项目+后期集成
pom.xml 内容修改

新增
构建Springboot项目+后期集成
修改后的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 http://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.1.3.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
  </parent>
  <groupId>com.model</groupId>
  <artifactId>springbillt</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>springbillt</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>
    <!--SpringBoot依赖-->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <!--web-->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <!-- SpringBoot集成thymeleaf模板 -->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>


  </dependencies>


</project>

没有的文件目录自己建。。。

简单修改配置文件如下
构建Springboot项目+后期集成
OK

构建Springboot项目+后期集成

往后还会建立子项目。。

集成现有的很多框架

!!!

相关文章: