我有一个spring lib jar,想将其导入到Tomcat中的自定义DataSourceFactory
中。
有人有解决方案吗?
这是我的代码:
public class SecureDataSourceFactory extends DataSourceFactory {
@Autowired
private EncryptionUtil encryptionUtil;
@Override
public DataSource createDataSource(Properties properties,Context context,boolean XA) throws Exception { encryptionUtil.replacePassword(properties);
return super.createDataSource(properties,context,XA);
}
}