摘要: 0.2.0支持監控Spring應用,而且支持使用Maven接入插件,請你們及時更新。java
<dependency> <groupId>com.fundebug</groupId> <artifactId>fundebug-spring</artifactId> <version>0.2.0</version> </dependency>
新增FundebugConfig.javagit
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"); } }
注意:獲取apikey須要免費註冊賬號而且建立項目。github
能夠參考Demo項目Fundebug/fundebug-spring-demo。spring
Fundebug的Java異常監控插件fundebug-java與fundebug-spring都發布到了Maven中央倉庫,所以能夠在pom.xml直接配置依賴。小程序
<dependency> <groupId>com.fundebug</groupId> <artifactId>fundebug-java</artifactId> <version>0.2.0</version> </dependency>
<dependency> <groupId>com.fundebug</groupId> <artifactId>fundebug-spring</artifactId> <version>0.2.0</version> </dependency>
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/api