Skip to content

Commit

Permalink
fix: arquivo application.properties não aceita acentos #64
Browse files Browse the repository at this point in the history
  • Loading branch information
tacianosilva committed Apr 19, 2024
1 parent cd156e3 commit b2a7c0c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
14 changes: 11 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.11</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<groupId>br.ufrn.dct</groupId>
<artifactId>apf-bsi</artifactId>
<version>0.0.1-SNAPSHOT</version>
Expand Down Expand Up @@ -151,7 +151,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
Expand All @@ -173,6 +172,15 @@
<layout>JAR</layout>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<propertiesEncoding>
UTF-8
</propertiesEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down
22 changes: 11 additions & 11 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# = DATA SOURCE
# ===============================
spring.datasource.url=jdbc:postgresql://localhost:5432/apf_db
# spring.datasource.name=apf_db
spring.datasource.name=apf_db
spring.datasource.username=apf_user
spring.datasource.password=12345
spring.datasource.driver-class-name=org.postgresql.Driver
spring.data.jpa.repositories.bootstrap-mode=default
#spring.data.jpa.repositories.bootstrap-mode=default

# ===============================
# = JPA / HIBERNATE
# ===============================
# spring.jpa.properties.hibernate.default_schema=apf
spring.jpa.properties.hibernate.default_schema=apf
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.defer-datasource-initialization=true
spring.sql.init.continue-on-error=true

spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=none
#spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
#spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
#spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy

spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
#spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true

logging.level.br.ufrn.dct.apf=DEBUG
#logging.level.org.hibernate.SQL=DEBUG
Expand All @@ -49,15 +49,15 @@ spring.thymeleaf.cache=false
# Context path of the application.
server.servlet.context-path=/apf
# Display name of the application.
server.servlet.application-display-name=Analisador de Pontos de Função
server.servlet.application-display-name=Analisador de Pontos de Fun��o
# Define server port.
server.port=8080

# ==============================================================
# = Spring Security / Queries for AuthenticationManagerBuilder
# ==============================================================
spring.queries.users-query=select email, password, active from users where email=?
spring.queries.roles-query=select u.email, r.role_name from users u inner join user_role ur on(u.user_id=ur.user_id) inner join role r on(ur.role_id=r.role_id) where u.email=?
#spring.queries.users-query=select email, password, active from users where email=?
#spring.queries.roles-query=select u.email, r.role_name from users u inner join user_role ur on(u.user_id=ur.user_id) inner join role r on(ur.role_id=r.role_id) where u.email=?

# =============================================================
# = Spring General
Expand Down

0 comments on commit b2a7c0c

Please sign in to comment.