springboot 2.6.13 jdk 1.8版本 常用pom包 application.yml文件记录

   
        org.springframework.boot
        spring-boot-starter-parent
        2.6.13
         
    

数据库

        
        
            com.mysql
            mysql-connector-j
        
        
            com.baomidou
            mybatis-plus-boot-starter
            3.5.2
        
        
            com.baomidou
            mybatis-plus-generator
            3.5.3.1
        

        
            org.projectlombok
            lombok
        

jwt

        
        
            io.jsonwebtoken
            jjwt
            0.9.1
        
        
        
            org.springframework.security
            spring-security-core
        

Spring Cloud  && Spring Cloud Alibaba



    org.springframework.cloud
    spring-cloud-dependencies
    2021.0.8
    pom
    import




    com.alibaba.cloud
    spring-cloud-alibaba-dependencies
    2021.0.5.0
    pom
    import



    org.springframework.cloud
    spring-cloud-starter-gateway
    3.1.5

application.yml 文件

​
server:
  port: 8091
spring:
  main:
    allow-bean-definition-overriding: true
  #  data:
#    elasticsearch:
#      client:
#        reactive:
#          endpoints: localhost:9200
#          socket-timeout: 15000
#          connection-timeout: 10000
#  elasticsearch:
#    rest:
#      uris: localhost:9200
  mail:
    host: smtp.qq.com
    username: [email protected]
    password: tftpashkqkjbegfa
    properties:
      mail:
        smtp:
          ssl:
            enable=true:
    default-encoding: UTF-8
  datasource:
    username: root
    password: 123456
    url: jdbc:mysql://localhost:3306/aurora?useUnicode=true&characterEncoding=utf8
    driverClassName: com.mysql.cj.jdbc.Driver
  config:
    import:
      nacos: bootstrap.yml
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    db-config:
#      logic-delete-field: deleted # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
#      logic-delete-value: 1 # 逻辑已删除值(默认为 1)
#      logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
      id-type: auto # id 自增
      table-prefix: aur_ # 数据库表前缀
  type-aliases-package: com.chk.user
  mapper-locations: classpath:mapper/*.xml #扫描的 mapper.xml
  #兼容bootstrap.yml


​

你可能感兴趣的:(java,spring,boot,oracle)