Fundebug後端Java異常監控插件更新至0.2.0,支持Spring及Maven

摘要: 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");
    }
}

注意:獲取apikey需要免費註冊帳號並且創建項目

可以參考Demo項目Fundebug/fundebug-spring-demo

支持使用Maven接入插件

Fundebug的Java異常監控插件fundebug-javafundebug-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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章