eclipse java web项目数据库配置文件添加

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/edtwar/article/details/79402546

首先创建一个jdbc的file

添加下面的代码:

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/你的项目名?useUnicode=true&characterEncoding=utf8
jdbc.username=xxx

jdbc.password=xxx




猜你喜欢

转载自blog.csdn.net/edtwar/article/details/79402546