是这样子的, 俺想利用 mybatis-generator-plugin 来自动生成 dao 相关的文件.
所以需要连接数据库, 从数据库中读取信息.
但不从的环境数据库的 url, username, password 不一样.
这三者信息是配置在 application.properties 文件中.
俺想利用 maven 的 profile, 多个环境定义多个 profile, profile 中再定义 properties, 在处理 resource 时, 根据不同的 profile 来替换 application.properties 中的 url, username, password.
然后 mybatis-generator 的配置文件从替换后的 application.properties 中读这个值.
但替换后的 application.properties 是在 target/classes 文件夹下, mybatis-generator 的配置文件好像读不到这个文件.
俺参考的是
https://mybatis.org/generator/configreference/properties.html有没有铁子处理过类似的情况?