6 changed files with 100 additions and 19 deletions
@ -0,0 +1,39 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.epmet.commons.tools.config; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import org.springframework.web.filter.RequestContextFilter; |
|||
import org.springframework.web.servlet.DispatcherServlet; |
|||
|
|||
import javax.annotation.PostConstruct; |
|||
|
|||
|
|||
/** |
|||
* DESC:设置线程继承属性为true,便于子线程获取到父线程的request,两个都设置为了保险 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Configuration |
|||
public class ThreadDispatcherConfig { |
|||
|
|||
@Autowired |
|||
RequestContextFilter requestContextFilter; |
|||
@Autowired |
|||
DispatcherServlet dispatcherServlet; |
|||
|
|||
@PostConstruct |
|||
public void init() { |
|||
// 设置线程继承属性为true,便于子线程获取到父线程的request,两个都设置为了保险。
|
|||
requestContextFilter.setThreadContextInheritable(true); |
|||
dispatcherServlet.setThreadContextInheritable(true); |
|||
} |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.bean; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* desc:导出居民信息 基础信息 给其他sheet使用 |
|||
*/ |
|||
@Data |
|||
public class ResiExportBaseInfoData implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
private String GRID_ID; |
|||
private String VILLAGE_ID; |
|||
private String BUILD_ID; |
|||
private String UNIT_ID; |
|||
private String HOME_ID; |
|||
private String IS_BDHJ; |
|||
private String NAME; |
|||
private String MOBILE; |
|||
private String GENDER; |
|||
private String ID_CARD; |
|||
private String BIRTHDAY; |
|||
private String CONTACTS; |
|||
private String CONTACTS_MOBILE; |
|||
} |
Loading…
Reference in new issue