摘要:
1.1 私服部署结构 在公司的局域网内部署一台服务器,服务器上安装maven私服软件。 服务器上存储了maven仓库。 在私服环境下本地项目找jar流程是: 1、先找本地仓库 2、如果本地仓库没有从私服找 3、如果私服没有从中央仓库下载,下载成功将jar向私服和本地仓库都存一份。 1.2 安装私服
阅读全文
posted @ 2017-12-31 23:35
非武
阅读(524)
推荐(0)
摘要:
一、内置Servlet Container: Tomcat 8 3.1 Java 7+ Tomcat 7 3.0 Java 6+ Jetty 9.3 3.1 Java 8+ Jetty 9.2 3.1 Java 7+ Jetty 8 3.0 Java 6+ Undertow 1.3 3.1 Java
阅读全文
posted @ 2017-12-28 18:06
非武
阅读(274)
推荐(0)
摘要:
开发时遇见这么一个情况,对接放发出的json格式不确定,这里的不确定是json中的字段不确定,以往都是采用gson进行实体和json的转换,但是找了挺长时间,还是没找到gson中可以解决这个情况的办法,博友们有知道的,请告知一二,跪谢。 废话不多说,这种办法最终使用jackson解决。 解决办法:
阅读全文
posted @ 2017-12-27 15:17
非武
阅读(226)
推荐(0)
摘要:
Web项目中发现有人如此获得Spring的上下环境: public class SpringUtil { public static ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext
阅读全文
posted @ 2017-12-27 14:41
非武
阅读(3983)
推荐(0)
摘要:
jackson的maven依赖 [html] <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.5.3</version> <
阅读全文
posted @ 2017-12-27 14:18
非武
阅读(977)
推荐(0)
摘要:
Bean Validation 中的 constraint Constraint详细信息 @Null 被注释的元素必须为 null @NotNull 被注释的元素必须不为 null @AssertTrue 被注释的元素必须为 true @AssertFalse 被注释的元素必须为 false @Mi
阅读全文
posted @ 2017-12-27 13:51
非武
阅读(161)
推荐(0)
摘要:
一、增加所依赖的JAR包1、增加Spring的Maven依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>3.0.5.RELEASE</vers
阅读全文
posted @ 2017-12-26 14:12
非武
阅读(171)
推荐(0)
摘要:
String body = "{}"; DefaultHttpClient httpclient = new DefaultHttpClient(); try { HttpPost httpost = new HttpPost(url); httpost.setEntity(new UrlEncod
阅读全文
posted @ 2017-12-17 16:46
非武
阅读(5850)
推荐(0)