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

摘要: 0.2.0支持監控Spring應用,而且支持使用Maven接入插件,請你們及時更新。java

支持監控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.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-demospring

支持使用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/api

相關文章
相關標籤/搜索