skip to Main Content

Redis streams publisher can't find command XADD

I got few errors from redis streams first is: org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'XREADGROUP' and the second is when I try to create stream publisher but I got error org.springframework.data.redis.RedisSystemException: Error in execution;…

VIEW QUESTION

How do I connect redis to Spring Boot?

I want to cocnect the Redis Docker Component to Spring Boot Session. The docker componenet is up and running Steins-MacBook-Air:~ steinkorsveien$ docker exec -it some-redis sh -c "redis-cli" 127.0.0.1:6379> exit To Spring Boot I have in the application.properties file spring.redis.host=localhost…

VIEW QUESTION

Unreadable thread name in logs with Logback – Telegram API

I run Spring Boot application and have following logback-spring.xml file: <?xml version="1.0" encoding="UTF-8"?> <configuration> <property name="LOGS" value="./logs" /> <appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> <Pattern> %black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1.}): %msg%n%throwable </Pattern> </layout> </appender> <appender name="RollingFile" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${LOGS}/logger.log</file> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <charset>UTF-8</charset> <Pattern>%d…

VIEW QUESTION

Redis – When I want to run my j2ee+maven+spring-boot+mysql project on idea, there comes a error

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-06-23 16:35:53.160 ERROR 7624 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation…

VIEW QUESTION

Java Spring Boot how to set Redis cache key for multiple query string parameters on controller

With the following Controller method: @GetMapping("/books") public ResponseEntity<List<Book>> getBooksByTitleOrAuthor( @RequestParam(required = false) String title, @RequestParam(required = false) String author) { if ((title== null || title.isEmpty()) && (author == null || author.isEmpty())) return new ResponseEntity<>(HttpStatus.BAD_REQUEST); if (author != null) { Logger.info("GET…

VIEW QUESTION
Back To Top
Search