skip to Main Content

What is the path for application.properties (or similar file) in docker container?

I am dockerizing springboot application(with PostgreSQL). I want to overwrite application.properties in docker container with my own application.properties. My docker-compose.yml file looks like this: version: '2' services: API: image: 'api-docker.jar' ports: - "8080:8080" depends_on: - PostgreSQL environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://PostgreSQL:5432/postgres -…

VIEW QUESTION

Redis – Spring sleuth error – correct the classpath of your application so that it contains compatible versions of the classes

When I start my spring boot application, I am running into this error below. Any help is highly appreciated. An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.cloud.sleuth.autoconfig.TraceAutoConfiguration.sleuthCurrentTraceContextBuilder(TraceAutoConfiguration.java:205)…

VIEW QUESTION

Using mongo and redis cache with both repositories in Spring Boot

I want to use both Redis and Mongo with repository manner (I do not want to use spring cache annotations but repository methods). I annotate the main class with the following annotations. @EnableMongoRepositories(basePackageClass = PersistencyRepository.class) @EnableRedisRepositories(basePackageClass = CacheRepository.class) @SpringBootApplication Repos…

VIEW QUESTION

Spring yaml property java.util.LinkedHashMap cannot be cast to java.lang.String – Docker

I try to pass Docker env variable in my Spring boot application.yml like this: security: saml2: relyingparty: registration: my-saml: signing: credentials: - private-key-location: classpath:HARD_PATH_TO_KEY certificate-location: classpath:HARD_PATH_TO_CERT identityprovider: verification.credentials: - certificate-location: classpath:HARD_PATH_TO_CERT entity-id: MY_ID singlesignon: url: {{saml.ip.singlesignon.url}} sign-request: true But when…

VIEW QUESTION
Back To Top
Search