EmployeeConfigInfoController.java 929 Bytes
package com.bsth.controller.schedule;

import com.bsth.controller.BaseController;
import com.bsth.entity.schedule.EmployeeConfigInfo;
import com.bsth.service.schedule.utils.DataToolsProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xu on 16/5/10.
 */
@RestController
@RequestMapping("eci")
@EnableConfigurationProperties(DataToolsProperties.class)
public class EmployeeConfigInfoController extends BaseController<EmployeeConfigInfo, Long> {
    @Autowired
    private DataToolsProperties dataToolsProperties;

    @Override
    protected String getDataImportKtrClasspath() {
        return dataToolsProperties.getEmployeesconfigDatainputktr();
    }
}