Fundebug后端Java異常監控插件更新至0.3.1,修復Maven下載失敗的問題


摘要: 0.3.1修復Maven下載失敗的問題。

監控Java應用

1. pom.xml 配置fundebug-java依賴

<dependency>
    <groupId>com.fundebug</groupId>
    <artifactId>fundebug-java</artifactId>
    <version>0.3.1</version>
</dependency>

2. 在項目中引入 fundebug 並配置 apikey

import com.fundebug.Fundebug;
Fundebug fundebug = new Fundebug("apikey");

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

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

監控Spring應用

1. pom.xml配置fundebug-spring依賴

<dependency>
    <groupId>com.fundebug</groupId>
    <artifactId>fundebug-spring</artifactId>
    <version>0.3.1</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

參考

關於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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM