master
parent
d5ed25d93c
commit
6b1f14facd
|
|
@ -17,6 +17,14 @@ import org.springframework.security.web.authentication.logout.LogoutSuccessHandl
|
|||
import com.boot.security.server.filter.TokenFilter;
|
||||
import com.boot.security.server.service.impl.UserDetailsServiceImpl;
|
||||
|
||||
/**
|
||||
* spring security配置
|
||||
*
|
||||
* @author 小威老师
|
||||
*
|
||||
* 2017年10月16日
|
||||
*
|
||||
*/
|
||||
@EnableGlobalMethodSecurity(prePostEnabled = true)
|
||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,13 @@ import com.boot.security.server.dto.Token;
|
|||
import com.boot.security.server.service.TokenService;
|
||||
import com.boot.security.server.utils.ResponseUtil;
|
||||
|
||||
/**
|
||||
* spring security处理器
|
||||
*
|
||||
* @author 小威老师
|
||||
*
|
||||
* 2017年10月16日
|
||||
*/
|
||||
@Configuration
|
||||
public class SecurityHandlerConfig {
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ import com.boot.security.server.model.SysUser;
|
|||
import com.boot.security.server.model.SysUser.Status;
|
||||
import com.boot.security.server.service.UserService;
|
||||
|
||||
/**
|
||||
* spring security登陆处理
|
||||
*
|
||||
* @author 小威老师
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class UserDetailsServiceImpl implements UserDetailsService {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue