SpringBoot入门-8(使用properties进行配置)
来源:互联网 发布:防化学气体口罩 知乎 编辑:程序博客网 时间:2024/06/14 02:07
系列教程都是从网络上收集和本人的理解所编辑而成,仅供广大爱好者学习所用,请尊重本人的劳动成果。欢迎评论指正和转帖!(请保留连接谢谢!)
一、application.properties(后面讲yml配置)
###########################################################datasource -- \u6307\u5b9amysql\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f.########################################################spring.datasource.url = jdbc:mysql://localhost:3306/springboot_testspring.datasource.username = rootspring.datasource.password = fengsispring.datasource.driverClassName = com.mysql.jdbc.Driverspring.datasource.max-active=20spring.datasource.max-idle=8spring.datasource.min-idle=8spring.datasource.initial-size=10########################################################### Java Persistence Api -- Spring jpa\u7684\u914d\u7f6e\u4fe1\u606f.######################################################### Specify the DBMSspring.jpa.database = MYSQL# Show or not log for each sql queryspring.jpa.show-sql = true# Hibernate ddl auto (create, create-drop, update)spring.jpa.hibernate.ddl-auto = update# Naming strategy#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy# stripped before adding them to the entity manager)spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect########################################################### peizhi ########################################################server.port = 8888server.context-path = /springboot
阅读全文
0 0
- SpringBoot入门-8(使用properties进行配置)
- SpringBoot入门-13(springboot配置使用YML)
- springboot 学习笔记(二)--- properties 配置
- springboot 学习笔记(二)--- properties 配置
- SpringBoot属性配置实战(application.properties)
- SpringBoot获取properties配置
- springboot-properties配置
- SpringBoot获取properties配置
- 3.SpringBoot-properties配置
- springboot application.properties配置
- springBoot--properties配置
- SpringBoot入门-17(springboot集成mybatis注解形式增删查改properties配置)
- SpringBoot入门-20(springboot集成mybatis注解形式properties配置,利用@Provider实现动态SQL)
- 第三节:SpringBoot使用properties配置文件实现多环境配置
- SpringBoot 使用properties配置文件实现多环境配置
- Spring使用Properties配置进行加密
- SpringBoot入门-14(springboot配置thymeleaf使用YML)
- SpringBoot入门-15(springboot配置freemarker使用YML)
- SAP BDC 数据导入
- Integer的equal和==
- 程序员面试技巧
- C#使用GZIP解压缩完整读取网页内容
- mysql远程连接
- SpringBoot入门-8(使用properties进行配置)
- Jenkins入门系列之——01第一章 Jenkins是什么?
- java并发编程之synchronized关键字(五)
- Android
- 使用Spring 定时器 + selenium打卡
- vue mixins和extends的妙用
- 在RHEL7或CentOS7中修改创建账号时系统默认UID、GID最小起始值及其他设置
- QT5.7 搭建android环境
- 一文概述2017年深度学习NLP重大进展与趋势