https://www.gravatar.com/avatar/e1e32db2947faab822f954d39654b2d9?s=240&d=mp

Mybatis如何加载Mapper.xml

在根据Mybatis入门中有这么一段 String resource = "org/mybatis/example/mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(resource); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream); 通过mybatis-config.xml读取Mybatis相关配置,其中有一个

Jenkinsfile Pipeline 案例

JenkinsFile Pipeline案例 //判断tag是否x.x.x def boolean isVersionTag(String tag) { echo "checking version tag $tag" if (tag == null) { return false } def tagMatcher = tag =~ /\d+\.\d+\.\d+/ return tagMatcher.matches() } //获取当前tag def String readCurrentTag() { return sh(returnStdout: true, script: "git

Java GC Roots

可达性算法中以GC Root对象为起点开始搜索。 GC Roots 是类的静态变量,或者方法的局部变量 什么是GC Root对象 虚拟机栈中引用的对象 public class Rumenz{ public static void main(String[]