springboot

1.pom.xml

        
        
            org.springframework.boot
            spring-boot-starter-web
        
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
        
        
            org.springframework.boot
            spring-boot-starter-actuator
         
        
        
            org.projectlombok
            lombok
            true
        
        
        
            io.springfox
            springfox-swagger2
            2.9.2
        
        
            io.springfox
            springfox-swagger-ui
            2.9.2
        
        
        
            cn.hutool
            hutool-all
            4.1.14
        
        
        
            com.google.guava
            guava
            20.0
        
        
        
            mysql
            mysql-connector-java
            runtime
        
        
        
            com.alibaba
            druid-spring-boot-starter
            1.1.10
        
        
        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            2.0.1
        
        
        
            com.baomidou
            mybatis-plus-boot-starter
            3.1.2
        

  1. application.yml
server:
  port: 8899
  servlet:
    context-path: /warehouseManager
spring:
  main:
    allow-bean-definition-overriding: true
  datasource:
#    druid:
    #JDBC 配置(驱动类自动从url的mysql识别,数据源类型自动识别)
    driver-class-name: com.mysql.cj.jdbc.Driver
    #连接池配置(通常来说,只需要修改initialSize、minIdle、maxActive
#    initial-size: 1
#    max-active: 20
#    min-idle: 1
    url: jdbc:mysql://xxx:10031/warehouse_manager?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
    username: warehouse
    password: warehouse_1118

mybatis:
  mapper-locations: classpath:mapper/*.xml
  check-config-location: true

logging:
  level:
    com.herongjiang.warehouseManager: debug

你可能感兴趣的:(springboot)