小编lak*_*ren的帖子

由于 bean 命名冲突,Spring Boot 应用程序无法运行

我收到此错误:

APPLICATION FAILED TO START
***************************

Description:

Configuration property name 'appConfig.baseVersion' is not valid:

    Invalid characters: 'C'
    Bean: paymentCheckoutRequestBuilder
    Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter

Action:

Modify 'appConfig.baseVersion' so that it conforms to the canonical names requirements.

Run Code Online (Sandbox Code Playgroud)

paymentCheckoutRequestBuilder 是 PaymentCheckoutRequestBuilder 类的一个 bean。我该怎么解决这个问题,你不能在烤肉串中命名一个类。

此外,在我尝试将 spring-boot 升级到 2.2.0 后发生此错误。

这个 appConfig.baseVersion 是什么,在网上找不到任何东西。

java spring maven spring-boot

7
推荐指数
2
解决办法
4572
查看次数

标签 统计

java ×1

maven ×1

spring ×1

spring-boot ×1