skip to Main Content

Add new Object to the JSON output

I have a POJO like this: public class Person { public long id; public String someOtherId; public String vollName; public int alter; } I am converting the POJO to JSON using the mixin: @JsonIncludeProperties( { "id", "name", "age", "customFields" }…

VIEW QUESTION

docker compose build: failed to solve: changes out of order

dockerfile FROM openjdk:alpine ARG JAR_FILE=target/*.jar COPY ./target/diplomAPI-0.0.1-SNAPSHOT.jar app.jar ENTRYPOINT ["java", "-jar", "/app.jar"] docker-compose.yml version: '3' services: app: build: context: . dockerfile: Dockerfile ports: - "8080:8080" depends_on: - db db: image: postgres restart: always ports: - "5432:5432" environment: POSTGRES_DB: mobilka POSTGRES_USER:…

VIEW QUESTION

Docker Lambda Image: Could not find or load main class com.amazonaws.services.lambda.runtime.api.client.AWSLambda

I built a Docker Lambda Image using the following DockerFile FROM registry.access.redhat.com/ubi8/ubi:8.1 as base RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm RUN yum update -y RUN yum install -y sudo bash curl wget man-db nano bash-completion RUN yum install -y java-11-openjdk-devel RUN…

VIEW QUESTION

Redis – Spring security config to require authentication for route does not work

I have spring config, where i am saving spring session in redis. @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { return http .csrf().disable() .cors(Customizer.withDefaults()) .authorizeHttpRequests(auth -> { auth.requestMatchers("/api/v1/auth/register/**", "/api/v1/auth/login" , "/api/v1/profile/**").permitAll(); auth.requestMatchers("/api/v1/profile").authenticated(); auth.anyRequest().authenticated(); }) .sessionManagement(sessionManagement -> sessionManagement .sessionCreationPolicy(IF_REQUIRED) // .sessionFixation(SessionManagementConfigurer.SessionFixationConfigurer::newSession)…

VIEW QUESTION
Back To Top
Search