skip to Main Content

DOCKER, SPRING, MYSQL ENV error when use docker

I have problem when I use docker compose and connection string i assign in ENV not recognize in spring application.yml this is my docker-compose.yml version: '3' services: mysqldb: image: mysql:8.3.0 ports: - "3307:3306" environment: MYSQL_ROOT_PASSWORD: 23012003aA@ MYSQL_DATABASE: checklist restart: always…

VIEW QUESTION

Redis – Spring boot native image can not serialize protobuf object

I have a method @Cacheable(value = USER_IDENTITIES_PROTO_CACHE) public UserIdentitiesResponseOuterClass.UserIdentitiesResponse findUserIdentitiesProto(UUID userId) { where UserIdentitiesResponseOuterClass.UserIdentitiesResponse is a class generated by protobuff. When using JVM everything works well but in the native image I am getting the exception "Failure putting into cache:…

VIEW QUESTION

How to subscribe redis key space event with spring

My Environment Mac Ventura 13.6.3 Temurin 17 SpringBoot 3.2.1 org.springframework.boot:spring-boot-starter-data-redis redis cluster running on local machine. (localhost: 7001, localhost: 7002, localhost: 7003 What I want to do I want to receive expire event from redis cluster with spring. What I…

VIEW QUESTION

Json – Does deserialize method(mapper.readValue) allocate direct buffer memory instead of heap memory?

I would like to ask you something about ObjectMapper.readvalue(). ObjectMapper mapper = new ObjectMapper(); List<ConvertType> responseList = new ArrayList<>(); for (ExampleContent content : iterable) { String json = new String(content.getData(), StandardCharsets.UTF_8); responseList.add(mapper.readValue(json, ConvertType)); Like the code above, I want to…

VIEW QUESTION

Javascript – Spring server cannot get data from FetchAPI error 403

I have such function to retrieve data from my form and send them to Spring Boot server function saveDataToStorage(event){ event.preventDefault(); let name = document.getElementById('imie').value; let email = document.getElementById('email').value; let phone = document.getElementById('telefon').value; let topic = document.getElementById('temat').value; let message = document.getElementById('wiadomosc').value;…

VIEW QUESTION
Back To Top
Search