package com.moral.config;
|
|
import javax.annotation.PostConstruct;
|
import javax.annotation.Resource;
|
|
import org.springframework.context.MessageSource;
|
import org.springframework.stereotype.Component;
|
|
import com.moral.common.util.ValidateUtil;
|
|
|
@Component
|
public class InjectionConfig {
|
|
@Resource
|
MessageSource resources;
|
|
@PostConstruct
|
private void init() {
|
ValidateUtil.setResources(resources);
|
}
|
}
|