Skip to content
Advertisement

Tag: spring-boot

How to implement Decorator pattern in Spring Boot

I know how to implement and use a decorator pattern without Spring. Because in this pattern you yourself control the process of creating components and you can perform dynamic behavior adding. Below is an example of implementation without using Spring: I am interested in how to implement the same example but with the help of spring beans. Because I don’t

Accessing spring bean proxy reference itself

I have an issue with @Cacheable and @CacheEviction annotations. When I call these methods in the bean where they are declared, the aop part is not getting executed. The underlying reason for this is that the bean access to its own instance itself, instead of accessing the spring proxy. I have read this question where it is said that in

H2 – Oracle – liquibase – org.h2.jdbc.JdbcSQLException: Table “all_sequences” not found;

I try to add H2 for testing purpose into Spring Boot application-test.yml, my production Db is Oracle. I want to populate H2 schema by liquibase, but I receive following error: Caused by: org.h2.jdbc.JdbcSQLException: Table “all_sequences” not found; SQL statement: My config is following: How to adjust config aboive, I spent few hours, but can not figure out how to make

MapStruct is not generating implementation classes

I am using Mapstruct and Lombok with maven and IDEA and it is refusing to generate mappers implementation. Config: Both Mapstruct and Lombok are registered as annotations processors with idea: Implementation files does not generate when I try to build with IDEA or if I try maven clean install. I have tried changing Java from 11 to 8 and it

javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

My spring boot application communicate to a remote https url and it gives the above mentioned error while hitting a POST request. I went through multiple stackoverflow posts for the same topic. Installed/imported required certificates using keytool and restarted JVM. But that didn’t resolve my issue. The error message is the same, however the root cause is different here apart

Advertisement