application.properties

#BANNER banner.charset=UTF-8 banner.location=banner.txt #MUSTACHE TEMPLATES #spring.mustache.cache=true #spring.mustache.check-template-location=true #spring.mustache.content-type=text/html #spring.mustache.enabled=true #spring.mustache.charset=UTF-8 #spring.mustache.suffix=.html #THYMELEAF TEMPLATES spring.thymeleaf.cache=false spring.thymeleaf.check-template=true spring.thymeleaf.check-template-location=true spring.thymeleaf.content-type=text/html spring.thymeleaf.enabled=true spring.thymeleaf.encoding=UTF-8 #spring.thymeleaf.excluded-view-names= # Comma-separated list of view names that should be excluded from resolution. #spring.thymeleaf.mode=HTML5 # Template mode to be applied to templates. See also StandardTemplateModeHandlers. #spring.thymeleaf.prefix=classpath:/templates/ # Prefix that gets prepended to view names when building a URL. spring.thymeleaf.suffix=.html #spring.thymeleaf.template-resolver-order= # Order of the template resolver in the chain. #spring.thymeleaf.view-names= # Comma-separated list of view names that can be resolved. #POSTGRESQL spring.jpa.generate-ddl=true spring.jpa.show-sql=true spring.datasource.driverClassName=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5432/inventario spring.datasource.username=postgres spring.datasource.password=5432 #spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.hibernate.ddl-auto=update #spring.jpa.hibernate.ddl-auto=create spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy # JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration) spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect #FILES UPLOAD #spring.http.multipart.max-file-size=128KB #spring.http.multipart.max-request-size=128KB
Archivo de configuración para un proyecto en Spring

Ejemplo:
testSpring\Inventario\src\main\resources\application.properties

1 Response

#BANNER
banner.charset=UTF-8
banner.location=banner.txt

#POSTGRESQL
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/curso_udemy
spring.datasource.username=postgres
spring.datasource.password=5432


#MySQL
#spring.datasource.url=jdbc:mysql://localhost/curso_udemy
#spring.datasource.username=root
#spring.datasource.password=root
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.jpa.database-platform=org.hibernate.dialect.MySQL57Dialect
#spring.jpa.hibernate.ddl-auto=create-drop
#spring.jpa.generate-ddl=true
#spring.jpa.show-sql=true
#spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.