```
/**
* Created by wizzer on 2016/6/21.
*/
public class Setup implements org.nutz.mvc.Setup {
private static final Log log = Logs.get();
private static Connection rabbitmq_conn;
private static Channel rabbitmq_channel;
@Inject
private PopulationService populationService ;
public void init(NutConfig config) {
try {
// 环境检查
if (!Charset.defaultCharset().name().equalsIgnoreCase(Encoding.UTF8)) {
log.warn("This project must run in UTF-8, pls add -Dfile.encoding=UTF-8 to JAVA_OPTS");
}
Ioc ioc = config.getIoc();
Dao dao = ioc.get(Dao.class);
// 初始化redis实现的id生成器
CustomMake.me().register("ig", ioc.get(RedisIdGenerator.class));
------------------------------------------------------------
@Inject
private PopulationService populationService ;
是不是自定义接口在这里没法注入?