logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-t

1.解决方法一种是直接在pom文件中配置<!--执行测试用例的插件--><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-suref...

#maven
ssh连接gitlab,一直要求输入密码

ssh也配置好了,但是一直提示输入用户名和密码:yaomy@xxx MINGW64 /c/software/develop/workplace/mis-ggmsg (master)$ git pullUsername for 'http://gitlab.xx-xx.cn':解决方法是://查看仓库所使用的连接形式git remote -v//修改仓库的连接方式为sshgit r...

#git
Java定时任务java.util.Timer.Timer和java.util.TimerTask详解

1.java.util.TimerTask类public abstract class TimerTask implements Runnable可由一个定时器进行一次或多次执行的任务。scheduledExecutionTime方法返回任务最近执行的时间cancel方法是停止任务执行public static void main(String[] args) ...

git将一个分支完全覆盖另外一个分支如:paytest分支代码完全覆盖master分支

如:当前分支是maser分支,我想讲paytest分支上的代码完全覆盖master分支,首先切换到master分支。git reset --hard origin/paytest执行上面的命令后master分支上的代码就完全被paytest分支上的代码覆盖了(本地分支),然后将本地分支强行推到远程分支。git push -f...

git查看本地和远程分支的状态

一、查看本地和远程分支的状态/C/software/develop/workplace/gogoalback (master)git remote showoriginremote originFetch URL: git@gitlab.gofund.cn:terminal_new/gogalb.gitPushURL: git

#git
spring boot项目中使用spring-boot-devtools模块进行代码热部署,避免重新启动web项目

一、spring-boot-devtools模块是一个为开发者服务的模块,其中最重要的功能就是代码的热部署,只需在pom文件中加入如下依赖不需要任何其他的配置org.springframework.bootspring-boot-devtoolstrue二、加入如上的代码依赖我们使用启动web项目,然后修改一下代码可以看到后台重新编译运行了项目,而且结果也改变了

#spring
spring boot注解@SpringBootApplication、@Controller、@RestController

一、@SpringBootApplication相当于@Configuration, @EnableAutoConfiguration and @ComponentScan这三个注解对应的默认属性。

#spring
druid数据库连接池泄漏removeAbandoned|connectedTimeNano属性配置

当程序存在缺陷时,申请的连接忘记关闭,这时候就存在连接泄漏了,druid提供了removeAbandanded相关配置,用来关闭长时间不适用的连接,removeAbandanded功能不建议再生产环境中使用,仅用于连接蟹柳检测诊断;配置:#连接池泄漏监测,当程序存在缺陷时,申请的连接忘记关闭,这时就存在连接泄漏了,开启后对性能有影响,建议生产关闭,默认:falsespring.emily.data

druid数据源检测数据库连接有效性testOnBorrow、testOnReturn、testWhileIdle属性原理分析

druid多数据源建立连接后,可以通过配置对连接的有效性进行检查,想要更好的运用好数据库连接检查配置就应该了解源码,了解控制原理。druid多数据源检测数据库连接的有效性属性配置如下:#mysql默认使用ping模式,可以通过设置系统属性System.getProperties().setProperty("druid.mysql.usePingMethod", "false")更改为sql模式#

Connection prematurely closed BEFORE response reactor.netty.http.client.PrematureCloseException: Co

一、最近在开发网关系统,就在感觉万事大吉可以上线的时候发现了如下的错误(这个是我在配置rabbitmq访问多个服务时发现的)Connection prematurely closed BEFORE responsereactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE respo

    共 47 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 请选择