Package com.fengjing.framework.spring.security.model

Examples of com.fengjing.framework.spring.security.model.User


  @Override
  public User findUserByUsername(String username) {
    return jdbcTemplate.queryForObject("SELECT * FROM users WHERE username = ? ", new ParameterizedSingleColumnRowMapper<User>(){
      @Override
      public User mapRow(ResultSet rs, int rowNum) throws SQLException {
        User user=new User();
        user.setUserid(rs.getString(1));
        user.setUsername(rs.getString(2));
        user.setPassword(rs.getString(3));
        user.setEnabled(rs.getInt(4));
       
        user.setAuthority(findAuthority(user.getUserid()));
       
        return user;
      }
    },username);
  }
View Full Code Here

TOP

Related Classes of com.fengjing.framework.spring.security.model.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.