~/devreads

#spring framework

4 posts

28 Jun 2020

Schakko 3 min read

The error org.postgresql.util.PSQLException: ERROR: operator does not exist: my_enum_type = character varying can be fixed by using implicit conversions in PostgreSQL or using explicit conversions by passing the java.sql.Types.OTHER to Spring JDBC. The exception you will receive When using Spring JDBC or Spring Data JDBC and custom Java enum types, […] The post How to fix “PSQLException: ERROR: operator does…

spring framework

4 Jun 2020

Schakko 5 min read

For ninkik I wanted to provide a subdomain for each of our customers. In addition to that, I wanted to use some other subdomains for static and dynamic content. At that moment I did explicitly not wanted to deal with microservices or multiple applications.When receiving a request, Spring should do […] The post Handling subdomains in multi-tenant applications with Spring…

spring framework

29 Nov 2015

Schakko 3 min read

It happened again: after writing about some issues caused by different JVM class-loader order a similar problem occured on Friday. One of my colleagues (Dev-A) asked me to look into a problem the team had. Because of unknown reasons the Spring Boot based application did not return a serialized JSON error object after […] The post ExceptionHandler of @ControllerAdvice is…

spring framework

11 Oct 2013

Schakko 1 min read

Picture the following scenario: You have an Enterprise Application Archive (EAR) which contains an EJB module and a WAR file. The web application uses a Spring application context and the same application context must be – for some reason – shared with your EJB. Using the beanRefContext.xml which points to […] The post Sharing the Spring application context from a…

spring framework