我无法在IntelliJ IDEA中激活Spring下载配置文件。
Java 17
IntelliJ IDEA 2021.3测试版(旗舰版)
<spring.version>5.3.9</spring.version>
我正在运行|编辑配置...在虚拟机选项中,我规定
-Dspring.profiles.active=development
当您从IDE启动应用程序时,以下错误崩溃:
Error: Could not find or load main class VM
Caused by: java.lang.ClassNotFoundException: VM
同时
我有一个Spring Boot JPA应用程序,带有spring boot 2.0.3.RELEASE并连接到PostgreSQL,当我运行该应用程序时,我得到以下错误消息:
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
数据库连接属性:
spring:
datasource:
ur
我在从application.properties文件中读取值时遇到了问题,并得到以下错误:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:run (default-cli) on project wedding-card: An exception occurred while running. null: InvocationTargetException: Error creating bean with name 'weddingCar