Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ===============================
- # = DATA SOURCE
- # ===============================
- spring.datasource.url = jdbc:mysql://localhost:3306/webshop?useSSL=false
- spring.datasource.username = root
- spring.datasource.password = root
- spring.jpa.database = MYSQL
- spring.datasource.testWhileIdle = true
- spring.datasource.validationQuery = SELECT 1
- # ===============================
- # = JPA / HIBERNATE
- # ===============================
- spring.jpa.show-sql = true
- spring.jpa.hibernate.ddl-auto = update
- spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
- # ===============================
- # = Thymeleaf configurations
- # ===============================
- spring.thymeleaf.cache=false
- # ==============================================================
- # = 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 from users u inner join user_role ur on(u.user_id=ur.user_id) inner join roles r on(ur.role_id=r.role_id) where u.email=?
- # ==============================================================
- # = Spring Session
- # ==============================================================
- spring.session.store-type=redis
- spring.session.redis.flush-mode= # Sessions flush mode.
- spring.session.redis.namespace= # Namespace for keys used to store sessions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement