skip to Main Content

Apache can't connect to new tomcat 9 ajp

My apache2 can no longer connect (by ajp) to my Spring boot's embedded tomcat after upgrading Spring boot's version from 2.1.4 to 2.3.2. It shows the following error : [proxy:error] [pid xxxx ] (111)Connection refused: AH00957: AJP: attempt to connect…

VIEW QUESTION

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