Java SpringBoot Configuration Example -
File - application.properties
server.port=1010
+------------------------------------------------------------------------+
logging.level.org.springframework.web: DEBUG
logging.level.org.hibernate: ERROR
+------------------------------------------------------------------------+
spring.application.name=login-service
spring.datasource.url=jdbc:mysql://localhost:3306/microservices
spring.datasource.username=root
spring.datasource.password=root@12345
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform = org.hibernate.dialect.MySQLDialect
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto = update
spring.jpa.properties.hibernate.globally_quoted_identifiers=true
+------------------------------------------------------------------------+
spring.security.user.name=admin
spring.security.user.password=admin
spring.security.user.roles=manager
No comments:
Post a Comment