Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1. # DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
  2.  
  3. # SqlServer
  4. # add integratedSecurity=true property on above configuration and remove username/password as they are not needed.
  5. spring.datasource.url=jdbc:sqlserver://localhost:1433;integratedSecurity=true;InstanceName=SQLEXPRESS;DatabaseName=jarvis;
  6. # remote
  7. #spring.datasource.url=jdbc:sqlserver://172.25.220.6\SNSM1389D0,1971;InstanceName=WIN-P77F2RNP86R\Utente;DatabaseName=jarvis;integratedSecurity=true
  8. #spring.datasource.username=jarvisDB
  9. #spring.datasource.password=xOBxrJupAxhxsjU
  10. spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  11.  
  12. # Hibernate
  13.  
  14. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  15. spring.jpa.show-sql=true
  16. # MySQL
  17. #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  18. # SqlServer
  19. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
  20.  
  21. # Hibernate ddl auto (none, create, create-drop, validate, update)
  22. spring.jpa.hibernate.ddl-auto=update
  23.  
  24. logging.level.org.hibernate.SQL=DEBUG
  25. logging.level.org.hibernate.type=TRACE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement