@IocBean(create = "init")
public class EncryptionConfig {
private static final Logger logger = LoggerFactory.getLogger(EncryptionConfig.class);
public void init(){
logger.info("Start injecting the key ...");
byte[] bt1 = new byte[4];
bt1[0] = 0x00;
bt1[1] = 0x00;
bt1[2] = 0x00;
bt1[3] = 0x00;
encryptionMap.put("0", bt1);
logger.info("Key injection completed ...");
}
}
3 回复
是通过 @Inject 注入或是 ioc.getBean 引入的么?
添加回复
请先登陆