Skip to content
Advertisement

Tag: spring-boot

Join tables in spring data jpa

I have an issue in joining two tables column. I have two entities Status Report and Employee. and I want the data of employee inside StatusReport. Another class is the employee: As you can see employee entity itself have some other joins on other tables. Which is a deparment table. When I join Status Report with Employee I get Sql

Gradle Login and signup page giving error in getUserAuthority() in CustomerUserDetailsService.java

The method getUserAuthority(java.util.Set<com.djamware.springsecuritymongodb.domain.Role>) in the type CustomUserDetailsService is not applicable for the arguments (java.util.Set<javax.management.relation.Role>) Why giving this error? This Java file is under package com.djamware.springsecuritymongodb.services and User.java is under package com.djamware.springsecuritymongodb.domain I have created User Class attached here. User.java Answer The reason is that the Role that CustomUserDetailsServices getUserAuthority(Set<Role> userRoles) is expecting com.djamware.springsecuritymongodb.domain.Role (see its imports). However, User is returning

Spring Boot Jpa specification Set Enums IN Set Enums

Hi I want filter restaurant by type using Specification, but I get error: Parameter value [SUSHI] did not match expected type [java.util.Set (n/a)] How Can I comare List enums to list enums ? :/ My specification file: Restaurant model: Restaurant category: Answer Had the same problem and this question helped me. In my case, I wanted to search my commissions

using spring boot data redis template get a null pointer error

config: use: and this always get a error, warn stack trace is: I just want to use spring boot date redis to do some CRUD operations like template<String, Object>. please help me Answer Field injection can’t happen until after the constructor is already finished. Make the template a constructor parameter instead (and avoid field injection generally).

Field authenticationManager in service.SecurityServiceImpl required a bean of type ‘org.springframework.security.authentication.AuthenticationManager’

I am new to Spring Boot and trying to implement whatever I’ve learned from this link: login-registration-feature. My aim is to build a user login and registration feature but i’m stuck with this error: My folder structure, code is same as the one mentioned in the link. But couldn’t figure out why @AutoWired is not working. Please help me. Thank

spring boot Tomcat

I have created one simple spring boot application and have added 2 dependencies using spring initializers, H2 and JPA. I have added H2 configuration in application.properties file and then added hoteldata.sql file in resource folder. When i am running the project, spring boot log doesn’t show Tomcat is started. I am expecting below log to be displayed while starting the

Advertisement