Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Spring Boot

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team,

I am implementing SpringSecurity but while using below class implementation facing below error.   Can we use xyzUser table instead of User
Getting Error : PropertyReferenceException: No property findbyusername found for type  

public class CustomUserDetailsService implements UserDetailsService {

   private pdmUserRepository repository;

   public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
       xyzUser user = repository.findbyusername(username);
        System.out.println("UserName :"+ user);
        //CustomUserDetails userDetails = null;
           return user.get();
           // userDetails = new CustomUserDetails();
           // userDetails.setUser(user);
           throw new UsernameNotFoundException("User not exist with name :"+ username);
       return null;

What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!