15 changed files with 54 additions and 104 deletions
			
			
		| @ -1,35 +0,0 @@ | |||||
| /** |  | ||||
|  * Copyright 2018 人人开源 http://www.renren.io
 |  | ||||
|  * <p> |  | ||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); you may not |  | ||||
|  * use this file except in compliance with the License. You may obtain a copy of |  | ||||
|  * the License at |  | ||||
|  * <p> |  | ||||
|  * http://www.apache.org/licenses/LICENSE-2.0
 |  | ||||
|  * <p> |  | ||||
|  * Unless required by applicable law or agreed to in writing, software |  | ||||
|  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |  | ||||
|  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |  | ||||
|  * License for the specific language governing permissions and limitations under |  | ||||
|  * the License. |  | ||||
|  */ |  | ||||
| 
 |  | ||||
| package com.epmet.common.token.annotation; |  | ||||
| 
 |  | ||||
| import java.lang.annotation.ElementType; |  | ||||
| import java.lang.annotation.Retention; |  | ||||
| import java.lang.annotation.RetentionPolicy; |  | ||||
| import java.lang.annotation.Target; |  | ||||
| 
 |  | ||||
| /** |  | ||||
|  * 登录用户信息 |  | ||||
|  * |  | ||||
|  * @author chenshun |  | ||||
|  * @email sunlightcs@gmail.com |  | ||||
|  * @date 2017-03-23 20:39 |  | ||||
|  */ |  | ||||
| @Target(ElementType.PARAMETER) |  | ||||
| @Retention(RetentionPolicy.RUNTIME) |  | ||||
| public @interface LoginUser { |  | ||||
| 
 |  | ||||
| } |  | ||||
| @ -1,4 +1,4 @@ | |||||
| package com.epmet.common.token.dto; | package com.epmet.commons.tools.security.dto; | ||||
| 
 | 
 | ||||
| import lombok.Data; | import lombok.Data; | ||||
| 
 | 
 | ||||
| @ -1,34 +0,0 @@ | |||||
| /** |  | ||||
|  * Copyright (c) 2018 人人开源 All rights reserved. |  | ||||
|  * |  | ||||
|  * https://www.renren.io
 |  | ||||
|  * |  | ||||
|  * 版权所有,侵权必究! |  | ||||
|  */ |  | ||||
| 
 |  | ||||
| package com.epmet.config; |  | ||||
| 
 |  | ||||
| import com.epmet.resolver.LoginUserHandlerMethodArgumentResolver; |  | ||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||
| import org.springframework.context.annotation.Configuration; |  | ||||
| import org.springframework.web.method.support.HandlerMethodArgumentResolver; |  | ||||
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |  | ||||
| 
 |  | ||||
| import java.util.List; |  | ||||
| 
 |  | ||||
| /** |  | ||||
|  * MVC配置 |  | ||||
|  * |  | ||||
|  * @author Mark sunlightcs@gmail.com |  | ||||
|  * @since 1.0.0 |  | ||||
|  */ |  | ||||
| @Configuration |  | ||||
| public class WebConfig implements WebMvcConfigurer { |  | ||||
|     @Autowired |  | ||||
|     private LoginUserHandlerMethodArgumentResolver loginUserHandlerMethodArgumentResolver; |  | ||||
| 
 |  | ||||
|     @Override |  | ||||
|     public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { |  | ||||
|         argumentResolvers.add(loginUserHandlerMethodArgumentResolver); |  | ||||
|     } |  | ||||
| } |  | ||||
					Loading…
					
					
				
		Reference in new issue