现在有一个配置文件, 假设路径 /opt/tomcat/webapps/app/WEB-INF/class/config.properties
app.jdbc.driver=com.mysql.jdbc.Driver
app.jdbc.url=jdbc:mysql://192.168.1.5:3306/app?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
app.jdbc.user=root
app.jdbc.password=123456
hibernate.jdbc.batch_size=500
executor.queue.capacity=25000
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.hbm2ddl.auto=none
hibernate.show_sql=false
hibernate.format_sql=false
hibernate.use_sql_comments=true
编写一段 Bash 实现,修改 IP / username / password 三项的值
macleelive
josephxia