[Java的写法]Spring中的静态类的写法,需使用@PostConstruct
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
@Component
public class StartWorkFormUtils {
public static StartWorkFormUtils utils;
@PostConstruct
public void init() { utils = this; }
@Resource
private ITEFileInfoService iteFileInfoService;
public static void createFile(
utils.iteFileInfoService.dosomething();