skip to Main Content

Postgres container connection refused – Debian

Docker-compose with 2 containers. 1st is a Postgres database and 2nd is a Java Spring Boot application. For running, I use further docker-compose config file: docker-compose.yml version: "3.7" services: db-service: image: postgres restart: always volumes: - /home/ec2-user/dbdata:/var/lib/postgresql/data environment: POSTGRES_USER: postgres…

VIEW QUESTION

Quarkus SSE Redis subscribe

I like to do an SSE with the response of redis.subscribe in quarkus. I have a sample from the quarkus-quickstart for a simple SSE @GET @Produces(MediaType.SERVER_SENT_EVENTS) @SseElementType(MediaType.TEXT_PLAIN) @Path("{name}/streaming") public Multi<String> greeting(@org.jboss.resteasy.annotations.jaxrs.PathParam String name) { return Multi.createFrom().publisher(vertx.periodicStream(2000).toMulti()) .map(l -> String.format("Hello %s!…

VIEW QUESTION

NOAUTH Authentication required spring-boot-data-redis+Realease Lettuce+Redis sentinel

when I restart redis cause java.util.concurrent.ExecutionException: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required. Why is this a problem use version like this @Configuration public class RedisConfig { @Autowired private RedisProperties redisProperties; @Bean(destroyMethod = "close") public StatefulRedisConnection<String, Object> StatefulRedisConnection() { RedisURI redisUri = RedisURI.builder().withPassword(redisProperties.getPassword())…

VIEW QUESTION

using spring boot data redis template get a null pointer error

config: @Configuration @EnableCaching public class RedisConfig extends CachingConfigurerSupport{ @Bean(name = "template") public RedisTemplate<String, Object> template(RedisConnectionFactory factory) { RedisTemplate<String, Object> template = new RedisTemplate<>(); template.setConnectionFactory(factory); Jackson2JsonRedisSerializer<Object> jacksonSeial = new Jackson2JsonRedisSerializer<>(Object.class); ObjectMapper om = new ObjectMapper(); om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); jacksonSeial.setObjectMapper(om); StringRedisSerializer stringSerial…

VIEW QUESTION
Back To Top
Search