32 lines
982 B
Java
32 lines
982 B
Java
package com.amarsoft.app.awe.config;
|
|
|
|
import javax.servlet.http.HttpServlet;
|
|
import org.springframework.web.context.ContextLoader;
|
|
import org.springframework.web.context.WebApplicationContext;
|
|
|
|
/**
|
|
* @author ÕÅÀÚ
|
|
* @date 2018Äê6ÔÂ14ÈÕ
|
|
*/
|
|
public class InitSecondHandCarConfig extends HttpServlet {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
public static final String PREFIX;
|
|
|
|
public static final String TOKEN;
|
|
|
|
public static final String OPER;
|
|
|
|
public static final String VERSION;
|
|
|
|
static {
|
|
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
|
|
SecondHandCarProperties secondHandCarProperties = wac.getBean("secondHandCarConfig",SecondHandCarProperties.class);
|
|
TOKEN = secondHandCarProperties.getToken();
|
|
OPER = secondHandCarProperties.getOper();
|
|
PREFIX = secondHandCarProperties.getPrefix();
|
|
VERSION = secondHandCarProperties.getVersion();
|
|
}
|
|
}
|