spring-boot创建

spring-boot 项目搭建

  1. pom.xml依赖

    org.springframework.boot
    spring-boot-starter-parent
    2.1.7.RELEASE
    



    org.springframework.boot
    spring-boot-starter-web



    
        
            org.springframework.boot
            spring-boot-maven-plugin
        
    



    org.springframework.boot
    spring-boot-starter-data-jpa



    org.springframework.boot
    spring-boot-starter-actuator



    org.projectlombok
    lombok
    1.18.10
    provided

# mysql8 的配置信息
server:
  port: 8080
  servlet:
    context-path: /
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&useSSL=false
    username: root
    password: 123456
  jpa:
    database: MySQL
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
    show-sql: true
    hibernate:
      ddl-auto: update

    io.springfox
    springfox-swagger2
    2.7.0

你可能感兴趣的:(spring-boot创建)