skip to Main Content

RedisTemplate Spring boot

I am going to store my token in redis RedisConfig @Configuration @EnableCaching public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName("127.0.0.1"); redisStandaloneConfiguration.setPort(6379); JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory(redisStandaloneConfiguration); return jedisConnectionFactory; } @Bean public RedisTemplate<String, String>…

VIEW QUESTION

Jasypt: Failed to bind properties under 'spring.datasource.password' to java.lang.String – Docker

I am using Jasypt in my Spring Boot app and encrypted passwords in app properties and docker-compose using proper annotation: application.properties.yml: datasource: driver-class-name: org.postgresql.Driver url: jdbc:postgresql://localhost:5432/employee_db username: postgres password: ENC(fpEVpMwMbl4hbcoCKuhrpi...) # jasypt jasypt: encryptor: algorithm: PBEWithMD5AndDES iv-generator-classname: org.jasypt.iv.NoIvGenerator docker-compose.yml: services:…

VIEW QUESTION
Back To Top
Search