创建一个空项目

CreateNullPoject

上一步的基础上创建一个springboot项目

CreateSpringboot1

CreateSpringboot2

完善项目结构

struct

完善配置文件

![](C:\Users\86183\Desktop\建立spring boot项目\img\application.png)
application

spring:
  #数据库连接信息
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/webpoject
    username: root
    password: 123456
    #文件上传配置
  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 100MB
#mybatis配置
mybatis:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: true

#spring事务管理日志
logging:
  level:
    org.springframework.jdbc.support.JdbcTransactionManager: debug