fix - jndi lookup 에 resourceRef true 적용

- java:comp/env 네임스페이스 자동 prepend
- tomcat ContextResource 매칭 위함
This commit is contained in:
Rinjae
2026-06-09 18:58:04 +09:00
parent cce9753e36
commit 357d609552
@@ -27,6 +27,7 @@ public class BaseDatasourceConfiguration {
protected DataSource jndiLookup(String jndiName) throws NamingException {
JndiObjectFactoryBean bean = new JndiObjectFactoryBean();
bean.setJndiName(jndiName);
bean.setResourceRef(true);
bean.setProxyInterface(DataSource.class);
bean.afterPropertiesSet();
return (DataSource) bean.getObject();