首先把三个文件copy到resources目录下:
然后把这两个文件copy到WEB-INF下:
在datasource.properties中增加:
db.driverLocation=C:\Users\think\IdeaProjects\mmall\src\main\tools\mysql-connector-java-5.1.6-bin.jar
db.driverClassName=com.mysql.jdbc.Driver
db.url=jdbc:mysql://39.108.63.239:3306/mmall_learning?characterEncoding=utf-8
db.username=mmall
db.password=mmall
db.initialSize = 20
db.maxActive = 50
db.maxIdle = 20
db.minIdle = 10
db.maxWait = 10
db.defaultAutoCommit = true
db.minEvictableIdleTimeMillis = 3600000
如果想把改文件改名的话:,就在XX处改名(我们这里不改)。