Skip to content
Advertisement

Tag: spring-boot

Docker (Spring Boot or Thorntail) and Keycloak

i have a Problem Running Spring Boot and Keycloak both in docker containers. I started with Keycloak with mysql as db running in docker. Then i added my realm (SpringBootKeycloak), my client (testclient), and a user with role ‘user’. After that i added spring-security to my Spring-boot-application. And edited my application.yml accoring to that i added my SecurityConfig: Running my

Disable Spring Cloud Sleuth when running Integration Tests?

When using org.springframework.cloud:spring-cloud-gcp-starter-trace:1.0.0.RELEASE and running my integration tests locally I get this error message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘stackdriverSender’ defined in class path resource [org/springframework/cloud/gcp/autoconfigure/trace/StackdriverTraceAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [zipkin2.reporter.Sender]: Factory method ‘stackdriverSender’ threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available

Spring Kafka The class is not in the trusted packages

In my Spring Boot/Kafka application before the library update, I used the following class org.telegram.telegrambots.api.objects.Update in order to post messages to the Kafka topic. Right now I use the following org.telegram.telegrambots.meta.api.objects.Update. As you may see – they have different packages. After application restart I ran into the following issue: This is my config: application.properties How to solve this issue and

Spring Pageable does not translate @Column name

I have Entity object : And I have database view defined like this: And I have repository with custom query: Everything works fine when I request standard data with url: http://localhost:8080/someEntity/search/findBySomeParameter?parameter=25&page=0&size=20 But when I add sorting information it doesn’t work: http://localhost:8080/someEntity/search/findBySomeParameter?parameter=25&page=0&size=20&sort=entityFieldName,asc will throw following exception (I’m using Oracle database): It seems like sorting field are not translated with @Column(name), but

When running a project “Unsatisfied dependency expressed through constructor parameter 0”

When running a project, an error occurs: UnsatisfiedDependencyException: Error creating bean with name ‘sqlServerQueryDaoImpl’ defined in file SqlServerQueryDaoImpl.class : Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘javax.persistence.EntityManagerFactory’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} Code Dao DaoImpl my pom.xml stacktrace Answer Well, there are

Spring Data MongoDB 4.0 transactions support

MongoDB 4.0 are going to introduce transactions support with ACID guarantees. Does Spring Data MongoDB already supports the transactions in MongoDB and if no, when this awesome feature will be available. I really need it, taking into account the following issue – MongoDB schema design in order to support application horizontal scaling Answer Does Spring Data MongoDB already supports the

Maven Failsafe fails with java.lang.NoClassDefFoundError

I’ve started a new project: PostfixSQLConfig. It’s a simple Spring Boot application that is essentialy supposed to provide CRUD access for 4 simple databse tables. I wrote the the repository for the first table and some basic integration tests for said repository. Since this particular table should not provide update functionality, I implemented update function as: where NotUpdatableException is my

Advertisement