|
|
@ -13,6 +13,7 @@
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.autoconfigure.jdbc;
|
|
|
|
package org.springframework.boot.autoconfigure.jdbc;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
@ -105,7 +106,7 @@ public class XADataSourceAutoConfiguration implements BeanClassLoaderAware {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private ConfigurationPropertySource getBinderSource(DataSourceProperties dataSourceProperties) {
|
|
|
|
private ConfigurationPropertySource getBinderSource(DataSourceProperties dataSourceProperties) {
|
|
|
|
Map<Object, Object> properties = new HashMap<Object, Object>();
|
|
|
|
Map<Object, Object> properties = new HashMap<>();
|
|
|
|
properties.putAll(dataSourceProperties.getXa().getProperties());
|
|
|
|
properties.putAll(dataSourceProperties.getXa().getProperties());
|
|
|
|
properties.computeIfAbsent("user", (key) -> dataSourceProperties.determineUsername());
|
|
|
|
properties.computeIfAbsent("user", (key) -> dataSourceProperties.determineUsername());
|
|
|
|
properties.computeIfAbsent("password", (key) -> dataSourceProperties.determinePassword());
|
|
|
|
properties.computeIfAbsent("password", (key) -> dataSourceProperties.determinePassword());
|
|
|
|