Spring boot port change, spring boot JPA mySQL database configuration, spring boot port and database configuration in application properties
Common Application Properties
Various
properties can be specified inside your application.properties file, inside
your application.yml file, or as command line switches. This appendix provides
a list of common Spring Boot properties and references to the underlying
classes that consume them.
1.
server.port=9292
2.
spring.datasource.url=jdbc:mysql://localhost:3306/employee_management_system
3.
spring.datasource.name=employee_management_system
4.
spring.datasource.username=pcon
5.
spring.datasource.password=root
6.
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
7.
spring.jpa.hibernate.ddl-auto=update
8. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
Post a Comment