摘要: 0.2.0支持监控Spring应用,并且支持使用Maven接入插件,请大家及时更新。
支持监控Spring应用
1. pom.xml配置fundebug-spring依赖
<dependency>
<groupId>com.fundebug</groupId>
<artifactId>fundebug-spring</artifactId>
<version>0.2.0</version>
</dependency>
2. 在项目中引入fundebug并配置apikey
新增FundebugConfig.java
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import com.fundebug.Fundebug;
import com.fundebug.SpringConfig;
@Configuration
@Import(SpringConfig.class)
public class FundebugConfig {
@Bean
public Fundebug getBean() {
return new Fundebug("apikey");
}
}
可以参考Demo项目Fundebug/fundebug-spring-demo。
支持使用Maven接入插件
Fundebug的Java异常监控插件fundebug-java与fundebug-spring都发布到了Maven中央仓库,因此可以在pom.xml直接配置依赖。
接入fundebug-java
<dependency>
<groupId>com.fundebug</groupId>
<artifactId>fundebug-java</artifactId>
<version>0.2.0</version>
</dependency>
接入fundebug-spring
<dependency>
<groupId>com.fundebug</groupId>
<artifactId>fundebug-spring</artifactId>
<version>0.2.0</version>
</dependency>
参考
版权声明
點擊查看更多內容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦