博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jpa
阅读量:4703 次
发布时间:2019-06-10

本文共 1142 字,大约阅读时间需要 3 分钟。

spring.datasource.url=jdbc:sqlserver://localhost:port;databaseName=dbname

spring.datasource.username=juve

spring.datasource.password=buffon
spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
#spring.jpa.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
spring.jpa.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect

#spring.jpa.hibernate.ddl-auto=create
spring.jpa.hibernate.ddl-auto=create-drop
#spring.datasource.initialize=true
spring.jpa.database=SQL_SERVER
#spring.jpa.database=SQL_SERVER
#spring.datasource.platform=hsqldb

#very important!!! resolve hibernate table name case-sensitive problem
#spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

#very important!!! prevent create/drop/update any table automatically

spring.jpa.hibernate.ddl-auto=validate
#spring.jpa.show-sql=false

转载于:https://www.cnblogs.com/goldengallo/p/7472907.html

你可能感兴趣的文章
SshTerminal
查看>>
MySQL常用函数
查看>>
Ubuntu安装搜狗拼音教程
查看>>
Happy Number
查看>>
Sqlserver 系统视图简单说明
查看>>
【摘录】PHP异步调用实现方式
查看>>
php缓存机制
查看>>
bzoj2049 线段树 + 可撤销并查集
查看>>
sql语句---存在即更新,否则insert
查看>>
cookie机制、session机制
查看>>
BZOJ 3787: Gty的文艺妹子序列
查看>>
Comet OJ - Contest #5 简要题解
查看>>
CF1093G Multidimensional Queries
查看>>
移动端提升页面速度与网站性能
查看>>
中国剩余定理学习笔记
查看>>
深度学习中优化【Normalization】
查看>>
POJ2309BST(树状数组)
查看>>
洛谷P2114 起床困难综合症【位运算】【贪心】
查看>>
Ubuntu+caffe训练cifar-10数据集
查看>>
net 把指定 URI 的资源下载到本地
查看>>