Skip to content
Advertisement

Tag: spring

Cannot instantiate Session Factory in Spring Boot Application

Whenever I run Spring boot app, I got following errors about EntityManagerFactory and SessionFactory which results in Spring error with current stack trace below: Classes: Main: Configuration class: How can I fix that? What is the problem with creating the beans? I cannot find any information about this problem Dependencies for Hibernate and Spring are below: Hibernate -> 5.4.1.Final Spring

Android app client Mutual TLS with java server

I’m trying to send https requests to my server using mutual TLS. The server I got working successfully with TLS. But I can’t figure out how to do this on the client-side (Android app). I use spring on the java server. Requests from android app are made using HttpsUrlConnection(). I managed to be able to call HttpsUrlConnection() this how my

UnsatisfiedDependencyException: Error creating bean with name ‘repository.BookRepositoryTest’ in Junit Test

I am writing a junit test for spring data repository. But i can’t autowire repository interface. Program is running if i run main method and spring can detect all repositories,services,entities but if i run a test it gives this error : UnsatisfiedDependencyException: Error creating bean with name ‘repository.BookRepositoryTest’: Unsatisfied dependency expressed through field ‘bookRepository’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying

Advertisement