公司原来用的是spring MVC的多模块架构,经过我一段时间努力,升级成了 Spring Boot 项目迁移后可以使用,今天新建项目,把项目添加进JRebel中以后,报数据库url没有找到的错误。
经过排插,发现新建module的时候,我使用的是直接创建一个spring boot项目,所以会创建application.properties文件,一开始启动不报错应该是因为没有加入到Jrebel的热部署中,我一加进去就报错了,查了半小时。有点心累
***************************
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).