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

arthas-spring-boot-starter 需要支持 spring boot3 #2524

Closed
hengyunabc opened this issue May 15, 2023 · 2 comments
Closed

arthas-spring-boot-starter 需要支持 spring boot3 #2524

hengyunabc opened this issue May 15, 2023 · 2 comments
Milestone

Comments

@hengyunabc
Copy link
Collaborator

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#building-jars-with-maven-shade-plugin-and-gradle-shadow-plugin

配置文件需要改为:

META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

@hengyunabc
Copy link
Collaborator Author

因为还没有发新版本,spring boot3 的用户可以暂时在代码里,使用 @Import 来引用 Arthas的两个 Configuration 类。

  com.alibaba.arthas.spring.ArthasConfiguration
  com.alibaba.arthas.spring.endpoints.ArthasEndPointAutoConfiguration

hengyunabc added a commit to hengyunabc/arthas that referenced this issue May 15, 2023
hengyunabc added a commit to hengyunabc/arthas that referenced this issue May 15, 2023
hengyunabc added a commit to hengyunabc/arthas that referenced this issue May 15, 2023
@liufor
Copy link

liufor commented Dec 27, 2023

import com.alibaba.arthas.spring.ArthasConfiguration;
import com.alibaba.arthas.spring.endpoints.ArthasEndPointAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 在 Arthas 4.x 发版前,手写@Import以支持 Spring Boot 3.x ,
 * {@see https://github.com/alibaba/arthas/issues/2524#issuecomment-1547378659}.
 *
 * TODO Arthas 4.x 发版后,删除本类.
 */
@Configuration
@Import({ ArthasConfiguration.class, ArthasEndPointAutoConfiguration.class })
public class ArthasSupportSpringboot3Configuration {

}

@hengyunabc hengyunabc modified the milestones: 4.0.0, 3.7.2 Dec 27, 2023
hengyunabc added a commit that referenced this issue Jan 2, 2024
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

2 participants