Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.23版本中的druid-spring-boot-3-starter中的additional-spring-configuration-metadata.json存在错误 #6229

Open
w5hh opened this issue Nov 13, 2024 · 2 comments

Comments

@w5hh
Copy link

w5hh commented Nov 13, 2024

additional-spring-configuration-metadata.json存在以下内容

{
      "name": "spring.datasource.druid.filter.stat.enabled",
      "type": "java.lang.Boolean",
      "sourceType": "com.mmtrix.base.druid.spring.boot3.autoconfigure.stat.DruidFilterConfiguration",
      "description": "Enable StatFilter.",
      "defaultValue": false
}

其中的 com.mmtrix.base.druid.spring.boot3.autoconfigure.stat.DruidFilterConfiguration 这个类名是错误的,正确的应该是 com.alibaba.druid.spring.boot3.autoconfigure.stat.DruidFilterConfiguration。我看了1.2.24中的代码是这个com.alibaba.druid.spring.boot3.autoconfigure.stat.DruidFilterConfiguration。

com.mmtrix.base.druid.spring.boot3.autoconfigure.stat.DruidFilterConfiguration 这个类根本不存在,导致idea在配置时无法提供代码提示,并且 spring.datasource.druid.filter 相关配置也不能正确配置,不知是不是这个文件导致的。我手动注入一个Slf4jLogFilter才得以解决问题

@6LWa6ZKx
Copy link

yml无法提示

@Aunixtoyou
Copy link

以前有几个版本能正常提示 后面更新改出问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants