|
| 1 | +# =============================== |
| 2 | +# = DATA SOURCE |
| 3 | +# =============================== |
| 4 | +#spring.datasource.url=jdbc:h2:mem:apf_db;DB_CLOSE_DELAY=-1;INIT=CREATE SCHEMA IF NOT EXISTS apf |
| 5 | +spring.datasource.url=jdbc:h2:mem:apf_db;DB_CLOSE_DELAY=-1;MODE=Postgres; |
| 6 | +spring.datasource.username=sa |
| 7 | +spring.datasource.password= |
| 8 | +spring.datasource.driver-class-name=org.h2.Driver |
| 9 | +spring.data.jpa.repositories.bootstrap-mode=default |
| 10 | + |
| 11 | +# =============================== |
| 12 | +# = JPA / HIBERNATE |
| 13 | +# =============================== |
| 14 | +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect |
| 15 | +spring.jpa.hibernate.ddl-auto=update |
| 16 | +spring.jpa.defer-datasource-initialization=true |
| 17 | +# spring.jpa.properties.hibernate.default_schema=apf |
| 18 | +spring.jpa.show-sql=true |
| 19 | +spring.jpa.properties.hibernate.format_sql=true |
| 20 | + |
| 21 | +# Enabling H2 Console |
| 22 | +spring.h2.console.enabled=true |
| 23 | + |
| 24 | +# By default enabled for Embedded Databases |
| 25 | +spring.sql.init.mode=always |
| 26 | +spring.sql.init.continue-on-error=true |
| 27 | + |
| 28 | +logging.level.br.ufrn.dct.apf=DEBUG |
| 29 | + |
| 30 | +# =============================== |
| 31 | +# = Thymeleaf configurations |
| 32 | +# =============================== |
| 33 | +spring.thymeleaf.mode=HTML |
| 34 | +spring.thymeleaf.cache=false |
| 35 | + |
| 36 | +# ---------------------------------------- |
| 37 | +# WEB PROPERTIES |
| 38 | +# ---------------------------------------- |
| 39 | + |
| 40 | +# Context path of the application. |
| 41 | +server.servlet.context-path=/apf |
| 42 | +# Display name of the application. |
| 43 | +server.servlet.application-display-name=Analisador de Pontos de Função |
| 44 | +# Define server port. |
| 45 | +server.port=8080 |
| 46 | + |
| 47 | +# ============================================================== |
| 48 | +# = Spring Security / Queries for AuthenticationManagerBuilder |
| 49 | +# ============================================================== |
| 50 | +spring.queries.users-query=select email, password, active from apf.user where email=? |
| 51 | +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=? |
| 52 | + |
| 53 | +# ============================================================= |
| 54 | +# = Spring General |
| 55 | +# ============================================================= |
| 56 | +spring.main.allow-bean-definition-overriding=true |
0 commit comments