一.使用他人IDEA工程时,操作步骤
1.删除.idea文件夹
2.配置maven
file ->setting
3.配置JDK
file->Projectstructure->Platform Settings->SDKS
4.更改MySQL 连接密码
二、错误处理
错误描述
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Disconnected from the target VM, address: '127.0.0.1:65502', transport: 'socket'
Process finished with exit code 1
1.netstat -aon|findstr 8081(查找自己项目占用的端口号)
2.找到对应的端口对应的PID 输入指令找到对应的进程
tasklist | findstr 20452
3. 杀掉该进程 再次启动项目工程
taskkill /f /t /im java.exe
4.配置数据URL
jdbc:mysql://localhost:3306/zhaopin?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
5.配置resource
点击File-->project structure...