mybatis幾個能夠優化的地方

1,將數據庫信息封裝在配置文件裏 新建一個數據庫配置文件db.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC username=root password=123456html 在主配置文件conf.xml中導入db.properties <?xml
相關文章
相關標籤/搜索