// Path: src/main/java/com/wangc/comm/Param.java
// public class Param {
// 
//     // TODO: wangc@2017/3/14  读取配置 tp.jmeter.jtl.path
//     public static String JTL_PATH = File.separator + "jmeter" + File.separator + "jtl";
//     public static String LOG_PATH = File.separator + "jmeter" + File.separator + "log";
//     public static String HTML_PATH = File.separator + "jmeter" + File.separator + "html";
//     public static String JMX_PATH = File.separator + "jmeter" + File.separator + "jmx";
//     public static String DATA_PATH = File.separator + "jmeter" + File.separator + "data";
//     public static String JTL_SUFFIX = ".jtl";
//     public static String LOG_SUFFIX = ".log";
//     public static String SEPARATOR_MY = "_";
//     public static String USER_DIR = System.getProperty("user.dir");
//     public static String UPLOAD_DIR= "upload";
// //    public static String UPLOAD_JMX_PATH = File.separator+UPLOAD_DIR+File.separator+"jmx";
//     
//     
// 
// 
// }


import com.wangc.comm.Param;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.io.File;
package com.wangc;



/**
 * Created by wangchao on 2017/3/15.
 */

@Configuration
public class StaticResourceConfiguration extends WebMvcConfigurerAdapter {
    
    private final String FILE_PREX = "file://";
    private static String os = System.getProperty("os.name");

    private static final Logger logger = LoggerFactory.getLogger(StaticResourceConfiguration.class);


    @Override
// Path: src/main/java/com/wangc/comm/Param.java
// public class Param {
// 
//     // TODO: wangc@2017/3/14  读取配置 tp.jmeter.jtl.path
//     public static String JTL_PATH = File.separator + "jmeter" + File.separator + "jtl";
//     public static String LOG_PATH = File.separator + "jmeter" + File.separator + "log";
//     public static String HTML_PATH = File.separator + "jmeter" + File.separator + "html";
//     public static String JMX_PATH = File.separator + "jmeter" + File.separator + "jmx";
//     public static String DATA_PATH = File.separator + "jmeter" + File.separator + "data";
//     public static String JTL_SUFFIX = ".jtl";
//     public static String LOG_SUFFIX = ".log";
//     public static String SEPARATOR_MY = "_";
//     public static String USER_DIR = System.getProperty("user.dir");
//     public static String UPLOAD_DIR= "upload";
// //    public static String UPLOAD_JMX_PATH = File.separator+UPLOAD_DIR+File.separator+"jmx";
//     
//     
// 
// 
// }


// Path: src/main/java/com/wangc/StaticResourceConfiguration.java
import com.wangc.comm.Param;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.io.File;

package com.wangc;



/**
 * Created by wangchao on 2017/3/15.
 */

@Configuration
public class StaticResourceConfiguration extends WebMvcConfigurerAdapter {
    
    private final String FILE_PREX = "file://";
    private static String os = System.getProperty("os.name");

    private static final Logger logger = LoggerFactory.getLogger(StaticResourceConfiguration.class);


    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {