摘要:
构建maven项目:Maven Release Plug-in Plug-in 常用: ace-editor.jpianalysis-model-api.jpiantisamy-markup-formatter.jpiant.jpiapache-httpcomponents-client-4-api 阅读全文
摘要:
报错:Client closed connection before receiving entire response 前端请求: 后端接受: 错误原因:因为后端传的{"name":"2","passwd":"2"}不是json格式,需要转下json 改为下面即可成功 另外:需要加headers 阅读全文
摘要:
def heads= ("git ls-remote -h git@gitlab.com:*.git").execute()def headlist=heads.text.readLines().collect{it.split()[1]};def list=[''];list.addAll(hea 阅读全文
摘要:
1.登录http://maven.apache.org/download.cgi 2.拉倒最下面,点击 archives 3.可以看到maven个版本,找自己需要的下载 阅读全文
摘要:
mybatis生成器:http://blog.csdn.net/tolcf/article/details/50835165 通过命令生成:java -jar mybatis-generator-core-1.3.2.jar -configfile generator.xml -overwrite 阅读全文
摘要:
加载静态文件失败。 解决方案:在mvc的配置文件中加入以下配置 阅读全文
摘要:
● 下载jacoco.exec、jacocoant.jar、jacocoagent.jar ● jvm启动参数中添加(tomcat服务原理一样) JACOCO_OPTS=JAVA_OPTS="-javaagent:[jacocoagent.jar你的地址]=includes=com.*,output 阅读全文
摘要:
实现ISuiteListener 然后在该实现类的同级目录中创建“META-INF/services/org.testng.ITestNGListener”,即声明监听器实现类说实现的服务接口;最后将目录打包为jar文件,在运行TestNG执行时加入该jar到classpath中即可。 阅读全文
摘要:
在pom文件的project节点下增加build节点,mvn package即可 阅读全文
摘要:
salt查看日志: salt --log-level=all "10.199.165.244" state.highstate 进入调试模式: salt-minion -l debug [DEBUG ] Reading configuration from /etc/salt/minion [DEB 阅读全文
摘要:
说明: 看了网上很多关于alt-minion dead but pid file exists 的解决方法,千篇一律的写一个shell脚本 killproc salt-minion 见链接:http://732233048.blog.51cto.com/9323668/1693483 但是并没有什么 阅读全文
摘要:
1.查看最大的AUTO_INCREMENT SELECT AUTO_INCREMENT from information_schema.tables where table_schema='contract' and table_name='contract'; 2.修改最大的AUTO_INCREM 阅读全文
摘要:
第二步:解析完成后 [{"categoryInfo": "测试父分类","id": 12,"vendor_code": 0,"brandInfo": "非龙品牌,",}] 第三步:解析完成后 {"categoryInfo": "测试父分类","id": 12,"vendor_code": 0,"br 阅读全文
摘要:
git rev-parse HEAD 阅读全文
摘要:
1.string转json String params={'key1':'50001','key2':10007700'}Map<String, String> a = JSON.parseObject(params,new TypeReference<Map<String,String>>(){} 阅读全文
摘要:
1.@Resource(重要)a)加入 :j2ee/common-annotations.jar b)默认按名称,名称找不到,按类型默认按照名称setName1到xml中找和id相同的,没有的话再找和SetName类型一样的public class HelloWorld { SetName s... 阅读全文
摘要:
自动装配:按照类型来找会在xml中找类型一样的,比如 setMessage(SetName setName)上面有@Autowired,会到xml中找package com.yibai;import org.springframework.beans.factory.annotation.Autow... 阅读全文
摘要:
@Required注解适用于bean属性的setter方法,使用@Required的方法必须在xml中填充,负责报错例如下面的例子中,student中的setAge和setName有@Required注解如果xml中没有使用就会报错,package com.crm;import org.spring... 阅读全文
摘要:
转:http://www.2cto.com/px/201006/47834.html 在java.util 包下面有一个类 Properties,该类主要用于读取以项目的配置文件(以.properties结尾的文件和xml文件)。 Properties的构造函数有两个,一个不带参数,一个使用一个P... 阅读全文
摘要:
java.versionJava 运行时环境版本java.vendorJava 运行时环境供应商java.vendor.urlJava 供应商的 URLjava.homeJava 安装目录java.vm.specification.versionJava 虚拟机规范版本java.vm.specifi... 阅读全文