ITPub博客

首页 > IT职业 > IT图书 > Fundebug后端Java异常监控插件更新至0.2.0,支持Spri

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

IT图书 作者:davidtim 时间:2021-09-09 10:18:38 0 删除 编辑

摘要: 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-java与fundebug-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/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3349/viewspace-2819881/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: JavaWeb之JSP
请登录后发表评论 登录
全部评论

注册时间:2012-11-06

  • 博文量
    69
  • 访问量
    20647