Mybatis之新建项目 1、创建一个普通的Maven项目 2、导入依赖的包(pom.xml) <!--mybatis--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3 ...
分类:
其他好文 时间:
2020-12-25 12:17:06
阅读次数:
0
用maven打成jar包后,Main.class.getClassLoader().getResource("")为null。 示例: public static void main(String[] args) { System.out.println(Main.class.getResource ...
分类:
编程语言 时间:
2020-12-24 11:31:58
阅读次数:
0
1.Maven依赖 <!-- MBG --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.5</version> ...
分类:
其他好文 时间:
2020-12-23 12:47:38
阅读次数:
0
开始搜索下载了,nexus3.19版本,下来之后,建立一个maven 骨架过程 quickstart,提示没有lgf4j依赖和和maven插件都没有,开始搜索什么原因,猜想是nexus没有索引,右搜索全网,可以手动导入索引,于是找三个文件 nexus-maven-repository-index.g ...
分类:
其他好文 时间:
2020-12-21 12:06:24
阅读次数:
0
1. 创建本地仓库目录,并修改localRepo的路径 mkdir /usr/local/repo vim /usr/local/maven/conf/setting.xml <localRepository>/usr/local/repo</localRepository> 2.添加阿里云私服地址 ...
分类:
其他好文 时间:
2020-12-21 11:56:10
阅读次数:
0
这个问题是我们作为程序员几乎每天都要进行的操作,那它有多少种方式呢,我们这里就这点来说一说。解析的四种方式官方解析谷歌Gson解析阿里巴巴FastJson解析Jackson解析案例实操这里我们就只讨论对象与json如何互相转换。这里我们先创建好Maven项目,方便引入依赖,通过单元测试来实际检验我们不同的解析方式。下面我们都使用User对象,先创建好我们需要的类。User.javapackageo
分类:
Web程序 时间:
2020-12-21 11:14:53
阅读次数:
0
pip修改为国内源: windows环境: 1. windows不存在该目录,在当前用户目录下创建pip.ini 2. pip.ini路径为:C:\Users\bin\pip\pip.ini 3. pip.ini文件内容为: [global] index-url = http://mirrors.a ...
分类:
其他好文 时间:
2020-12-19 13:01:06
阅读次数:
2
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <!--serv ...
分类:
其他好文 时间:
2020-12-19 12:48:33
阅读次数:
1
<dependencies> <!--Junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <!--数据库驱动--> <d ...
分类:
编程语言 时间:
2020-12-19 12:15:45
阅读次数:
2
今天深入了解一下Spring,看了曹工的文章,想跑一下他的demo:https://gitee.com/ckl111/spring-boot-first-version-learn 他是基于Spring的第一个版本:4.0.0.BOOTSTRAP-SNAPSHOT 来做demo和分析源码的。 结果m ...
分类:
其他好文 时间:
2020-12-18 13:17:20
阅读次数:
3