• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

0 votes
15 views
application.properties file in spring boot
in Spring Boot by

1 Answer

0 votes
Spring boot application.properties file configuration. See the bellow in details:-

# ===============================
# = DATA SOURCE
# = LOCAL DB
# ===============================
spring.datasource.url = jdbc:mysql://localhost:3306/test?useUnicode=yes&characterEncoding=UTF-8
spring.datasource.username = root
spring.datasource.password = root

# ===============================
# = JPA / HIBERNATE
# ===============================
spring.jpa.show-sql = false
spring.jpa.properties.hibernate.show_sql=true
#spring.jpa.properties.hibernate.use_sql_comments=true
spring.jpa.properties.hibernate.format_sql=true
#spring.jpa.hibernate.ddl-auto = update
# Naming strategy
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

# ===============================
# = Thymeleaf configurations
# ===============================
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.cache=false

# ===============================
# = File upload size
# ===============================
spring.servlet.multipart.max-file-size=5MB
spring.servlet.multipart.max-request-size=20MB
# Enable multipart uploads
spring.servlet.multipart.enabled=true

# ===============================
# = Local Spring properties
# Service registers under this name
# ===============================
spring.application.name=tsmain-app-microservice

# ===============================   
# Discovery Server Access
# ===============================
eureka.client.serviceUrl.defaultZone: http://localhost:1111/eureka/

server.port:3000
# ===============================
# = Local
# ===============================
app.url=http://localhost:3000

#send grid
spring.sendgrid.api-key= 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
spring.freemarker.template-loader-path: classpath:/templates/email/
spring.freemarker.suffix: .ftl

# ==============================================================
# = Spring Security  
# ==============================================================
security.basic.enabled=false
by (3k points)
...