• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
时光里的赶路人
博客园    首页    新随笔    联系   管理    订阅  订阅
springboot的配置文件application.properties详解
server.port=8080   //服务器端口号
server.servlet.context-path=/ems   // 应用程序的上下文路径。

spring.datasource.type=com.alibaba.druid.pool.DruidDataSource  //要使用的连接池实现的完全限定名称。默认情况下,它是从类路径自动检测的。
spring.datasource.driver-class-name=com.mysql.jdbc.Driver //JDBC驱动程序的完全限定名称。默认情况下,根据URL自动检测。
spring.datasource.url=jdbc:mysql://localhost:3306/ems  //数据库的JDBC url
spring.datasource.username=root  //登录数据库的用户名
spring.datasource.password=123456  //登录数据库的密码

mybatis.mapper-locations=classpath:/com/lqz/mapper/*.xml  //指定mapper.xml的路径
mybatis.type-aliases-package=com.lqz.entity  

spring.resources.static-locations=classpath:/templates,classpath:/static/

 

posted on 2020-06-29 16:44  吹风哪页就哪页  阅读(1266)  评论(6)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3