Fundebug後端Java異常監控外掛更新至0.2.0,支援Spring及Maven
阿新 • • 發佈:2019-01-09
摘要: 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>
參考
關於Fundebug
Fundebug專注於JavaScript、微信小程式、微信小遊戲、支付寶小程式、React Native、Node.js和Java線上應用實時BUG監控。 自從2016年雙十一正式上線,Fundebug累計處理了9億+錯誤事件,付費客戶有Google、360、金山軟體、百姓網等眾多品牌企業。歡迎大家免費試用!
版權宣告
轉載時請註明作者Fundebug以及本文地址:
https://blog.fundebug.com/2019/01/07/fundebug-java-0-2-0/