• 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/
  • 相关阅读:
    高级选项更改MathType数学公式样式
    tp 批量转码
    create the web service by yourshelf
    云通讯 添加群组
    sql 更新字段
    op bug 修复计划
    php ut8声明
    PHP 包含文件
    php 判断查询结果是否为空
    合并列值
  • 原文地址:https://www.cnblogs.com/liqinzhen/p/13208745.html
Copyright © 2020-2023  润新知