Springboot项目启动以后,每次修改代码只要一保存,Maven Project Builder都会Building半天,不知是否有加速的方法,欢迎留言指导。继上一篇文章反编译Springboot项目之后,这两天终于又可以用源码来运行项目了。以下几行零碎地记录了一些工作。
20200424 08:49 debug Vehicle.java。
20200424 09:03 debug VehicleVo.java。
20200424 09:42 debug SysUser.java。
……
20200424 10:13 debug XXXSequenceController.java。
20200424 10:16 debug ImportantTargetController.java。
20200424 10:20 debug ServiceController.java。
20200424 10:27 debug VehicleService.java。
……
20200424 11:05 debug SysUserMapper.java。
20200424 11:07 debug VehicleMapper.java。
……
20200426 11:08 终于排除掉了所有显式错误,又可以登入系统了。
20200426 15:42 修复/src/main/resources/static/common/json/navs.json中目录的字符乱码。
……
20200427 09:03 没联网之前将pom.xml里版本号修改为0.1.2(不知这个错误是否因为没联网引起)。
到此为止pom.xml文件里报出了如下错误:
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.2 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.2 from/to central (https://repo.maven.apache.org/maven2):
repo.maven.apache.org
按照niaonao在文章https://blog.csdn.net/niaonao/article/details/80047136给出的第一种方法直接去强制Update Maven Project后问题依然存在。
然后按照他的文中给出的另一种方法,删除\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin目录下的所有文件,然后会自动重新下载对应jar包。完成之后pom.xml中的报错就没有了。不过项目还是启动不了。里面又冒出了其它的问题,留待下一步解决。
***************************
APPLICATION FAILED TO START
***************************
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).