摘要: 0.3.1 修复 Maven 下载失败的问题。
<dependency>
<groupId>com.fundebug</groupId>
<artifactId>fundebug-java</artifactId>
<version>0.3.1</version>
</dependency>
import com.fundebug.Fundebug;
Fundebug fundebug = new Fundebug("apikey");
注意:获取 apikey 需要免费注册帐号并且创建项目。
可以参考 Demo 项目 Fundebug/fundebug-java-demo 。
1. pom.xml 配置 fundebug-spring 依赖
<dependency>
<groupId>com.fundebug</groupId>
<artifactId>fundebug-spring</artifactId>
<version>0.3.1</version>
</dependency>
新增 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专注于 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/Fundebug专注于JavaScript、微信小程序、微信小游戏、支付宝小程序、React Native、Node.js和Java线上应用实时BUG监控。 自从2016年双十一正式上线,Fundebug累计处理了10亿+错误事件,付费客户有Google、360、金山软件、百姓网等众多品牌企业。欢迎大家免费试用!