liu_qixiang 2017-11-03 02:34 采纳率: 40%
浏览 5736

怎么添加spring boot application.properties 的配置文件提示?

各位大佬 向你们鞠躬了。。。像这样的图片说明

  • 写回答

2条回答 默认 最新

  • Linhai- 2017-11-03 02:43
    关注

    只需要加载mapper.xml就可以了啊
    spring:
    application:
    name: bicap-ms-service-daily-analysis-v1
    datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://10.10.1.12:3306/bicap?characterEncoding=utf8&useSSL=true&useSSL=false
    username:123456
    password: 123456
    type: com.alibaba.druid.pool.DruidDataSource
    initialSize: 10
    minIdle: 5
    maxActive: 30
    maxWait: 60000
    timeBetweenEvictionRunsMillis: 60000
    minEvictableIdleTimeMillis: 30000
    validationQuery: SELECT 1 FROM DUAL
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    poolPreparedStatements: true
    maxPoolPreparedStatementPerConnectionSize: 20
    filters: stat,wall,log4j
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    server:
    port: 14500
    connection-timeout: 180000
    mybatis:
    mapper-locations: classpath:mapper/*.xml
    type-aliases-package: com.bicap.cloud.daily.entity

    logging:
    level.com.bicap.cloud.daily.controller: info
    file: bicap-ms-service-daily-analysis-v1.log

    评论

报告相同问题?

悬赏问题

  • ¥50 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码