定义一个属性文件config.properties, 文档结构示例:
文件内容示例:
url=jdbc:postgresql://172.16.x.x:5432/database_name
在mybatis-config2.xml的proeprties属性中指定url,其中url的样式为file:\\\{config.properties文件绝对路径}
示例:
<properties url="file:\\\D:\WEBDEMO\simple\src\main\resources\config.properties"> </properties>
标签:文件,17,示例,url,mybatis,properties,属性 From: https://www.cnblogs.com/woniu123/p/16802841.html