skip to Main Content

Redis – Spring Boot: error when activating profile in YAML file

I can't activate a profile dynamically in a Spring Boot app. I defined profiles in pom.xml as follows: <profiles> <profile> <id>dev</id> <properties> <activatedProperties>dev</activatedProperties> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>prod</id> <properties> <activatedProperties>prod</activatedProperties> </properties> </profile> </profiles> Then I created 2 files…

VIEW QUESTION

Redis – Why does ResponseBody and Jackson ObjectMapper don't return the same output?

I am using a Spring Boot application. I have a method in my controller that returns some Resources: @ResponseBody @Transactional(rollbackFor = Exception.class) @GetMapping(value="data/{itemId}/items", produces="application/json") public Resources<DataExcerpt> listMyData(@PathVariable("debateId") UUID debateId)){ List<DataExcerpt> dataExcerpts = dataService .listMyData(id) .stream() .map(d -> this.projectionFactory.createProjection(DataExcerpt.class, d)) .collect(Collectors.toList());…

VIEW QUESTION

Redis – Deserialize class with @AutoValue annotation during getting from cache in SpringBoot application

I've created a value class with com.google.auto.value.AutoValue annotation: @AutoValue @JsonDeserialize(builder = AutoValue_Company.Builder.class) public abstract class Company { public static Builder newBuilder() { return new AutoValue_Company.Builder(); } @JsonProperty("id") public abstract long id(); @JsonProperty("description") public abstract String description(); @JsonProperty("websiteUrl") public abstract String…

VIEW QUESTION

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
Back To Top
Search