-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ajustes para testes com H2 #64
- Loading branch information
1 parent
a5beda7
commit 7d41888
Showing
5 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# =============================== | ||
# = DATA SOURCE | ||
# =============================== | ||
#spring.datasource.url=jdbc:h2:mem:apf_db;DB_CLOSE_DELAY=-1;INIT=CREATE SCHEMA IF NOT EXISTS apf | ||
spring.datasource.url=jdbc:h2:mem:apf_db;DB_CLOSE_DELAY=-1;MODE=Postgres; | ||
spring.datasource.username=sa | ||
spring.datasource.password= | ||
spring.datasource.driver-class-name=org.h2.Driver | ||
spring.data.jpa.repositories.bootstrap-mode=default | ||
|
||
# =============================== | ||
# = JPA / HIBERNATE | ||
# =============================== | ||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect | ||
spring.jpa.hibernate.ddl-auto=update | ||
spring.jpa.defer-datasource-initialization=true | ||
# spring.jpa.properties.hibernate.default_schema=apf | ||
spring.jpa.show-sql=true | ||
spring.jpa.properties.hibernate.format_sql=true | ||
|
||
# Enabling H2 Console | ||
spring.h2.console.enabled=true | ||
|
||
# By default enabled for Embedded Databases | ||
spring.sql.init.mode=always | ||
spring.sql.init.continue-on-error=true | ||
|
||
logging.level.br.ufrn.dct.apf=DEBUG | ||
|
||
# =============================== | ||
# = Thymeleaf configurations | ||
# =============================== | ||
spring.thymeleaf.mode=HTML | ||
spring.thymeleaf.cache=false | ||
|
||
# ---------------------------------------- | ||
# WEB PROPERTIES | ||
# ---------------------------------------- | ||
|
||
# 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 | ||
# Define server port. | ||
server.port=8080 | ||
|
||
# ============================================================== | ||
# = Spring Security / Queries for AuthenticationManagerBuilder | ||
# ============================================================== | ||
spring.queries.users-query=select email, password, active from apf.user where email=? | ||
spring.queries.roles-query=select u.email, r.role_name from apf.user u inner join apf.user_role ur on(u.user_id=ur.user_id) inner join apf.role r on(ur.role_id=r.role_id) where u.email=? | ||
|
||
# ============================================================= | ||
# = Spring General | ||
# ============================================================= | ||
spring.main.allow-bean-definition-overriding=true |
This file was deleted.
Oops, something went wrong.