skip to Main Content

Postgresql – I have ERROR like this in postgres: syntax error at or near ":"

When i try to execute native query in my Spring JPA i give an error in my code ? import javax.management.Query; import javax.persistence.EntityManager; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import java.util.ArrayList; import java.util.List; import java.sql.SQLException; import…

VIEW QUESTION

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