application.properties案例
spring.application.name=itcast-mp-springboot
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.43.58:3308/demo?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username=root
spring.datasource.password=123456
#指定全局的配置文件
mybatis-plus.config-location=classpath:mybatis-work.xml
#指定mapper.xml文件的路径
mybatis-plus.mapper-locations=classpath*:mapper/*.xml
#实体类对象的扫描包
mybatis-plus.type-aliases-package=com.baomidou.ant.cn.kgc.entity
#禁用/启动自动的驼峰映射
#mybatis-plus.configuration.map-underscore-to-camel-case=true
#禁用/启动 默认是启动的缓存
#mybatis-plus.configuration.cache-enabled=false
#配置全局id自增多的策略
#mybatis-plus.global-config.db-config.id-type=auto
#全局的表名的前缀
#mybatis-plus.global-config.db-config.table-prefix=tb_
本文作者:AxeBurner
本文链接:https://www.cnblogs.com/bichen-01/p/12124901.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步