xiangpei
2024-06-26 12aa6d1bbe7b386f81731d797942b6a1ac7e3a2f
src/main/java/com/ycl/jxkg/config/spring/security/RestDetailsServiceImpl.java
@@ -1,6 +1,6 @@
package com.ycl.jxkg.config.spring.security;
import com.ycl.jxkg.domain.enums.RoleEnum;
import com.ycl.jxkg.enums.RoleEnum;
import com.ycl.jxkg.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
@@ -38,7 +38,7 @@
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        com.ycl.jxkg.domain.User user = userService.getUserByUserName(username);
        com.ycl.jxkg.domain.entity.User user = userService.getUserByUserName(username);
        if (user == null) {
            throw new UsernameNotFoundException("Username  not found.");