为了账号安全,请及时绑定邮箱和手机立即绑定

Fundebug后端Java异常监控插件更新至0.2.0,支持Spring及Maven

标签:
Java Spring

摘要: 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以及本文地址:
https://blog.fundebug.com/2019/01/07/fundebug-java-0-2-0/

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
全栈工程师
手记
粉丝
6376
获赞与收藏
2075

关注作者,订阅最新文章

阅读免费教程

  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消