使用org.springframework.security.core.userdetails.UserDetails获取错误

时间:2016-04-06 22:45:11

标签: java spring spring-security

package demo;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

public class SecUserDetails implements UserDetails {

    private User user;


    public SecUserDetails(User user) {
        this.user = user;
    }
}

此代码是否有任何帮助?

  

[错误]无法执行目标   org.apache.maven.plugins:Maven的编译器插件:3.1:编译   项目模块上的(default-compile):编译失败[ERROR]   /var/local/modular/src/main/java/demo/SecUserDetails.java:[6,8]   demo.SecUserDetails不是抽象的,不会覆盖抽象   方法isEnabled()in   org.springframework.security.core.userdetails.UserDetails

0 个答案:

没有答案