1 public class TestRead { 2 @Test 3 public void readTest() throws Exception { 4 Configuration conf = new Configuration(); 5 FileSystem fs = FileSystem... ...
分类:
其他好文 时间:
2017-05-23 23:43:50
阅读次数:
574
去tomcat官网http://tomcat.apache.org/,左侧栏Apache Tomcat下的Maven Plugin,点进去选择最新版本Version 2.2 通过介绍可知,使用tomcat的maven插件有两种配置方式: 第一种:在pom.xml文件的<build></build>中 ...
分类:
Web程序 时间:
2017-05-23 22:41:29
阅读次数:
279
方式1.通过API 方式2.通过spring applicationContext-dubbo.xml 注意引入提供方的接口jar包 方式1.通过API 方式2.通过spring applicationContext-dubbo.xml 注意引入提供方的接口jar包 ?作者:明志健致远 ?出处:ht ...
分类:
其他好文 时间:
2017-05-23 19:48:59
阅读次数:
169
由于CacheFilter实现了javax.servlet.Filter接口,Filter是在servlet-api.jar里,因此pom中有 <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifac ...
分类:
编程语言 时间:
2017-05-22 16:36:54
阅读次数:
138
jetty 方式启动dubbo。 首先为dubbo 添加jetty mven 插件: http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html First, add jetty-maven-plugin to ...
分类:
其他好文 时间:
2017-05-21 19:48:44
阅读次数:
672
本文介绍一下用Maven工具如何生成Mybatis的代码及映射的文件。 一、配置Maven pom.xml 文件 在pom.xml增加以下插件: 配置好Maven插件,下面需要配置插件需要配置文件 二、在maven项目下的src/main/resources 目录下建立名为 Maven的项目配置文件 ...
分类:
其他好文 时间:
2017-05-21 15:26:16
阅读次数:
171
?? 1 若想让maven项目依赖另外一个maven项目。被依赖的项目要在maven仓库中有对应的jar包,所以要对依赖的项目运行mvninstall命令。 2 新建第二个项目模块HelloFriend文件夹及约定的文件夹结构 HelloFriend --src main java resource ...
分类:
编程语言 时间:
2017-05-21 10:56:34
阅读次数:
191
JeeSite是在Spring Framework基础上搭建的一个Java基础开发平台,以Spring MVC为模型视图控制器,MyBatis为数据访问层, Apache Shiro为权限授权层,Ehcahe对常用数据进行缓存,Activit为工作流引擎。是JavaEE界的最佳整合。 内置功能 为何 ...
分类:
其他好文 时间:
2017-05-20 01:11:27
阅读次数:
216
1、到http://repo.maven.apache.org/maven2/.index/页面下载下面这两个文件: nexus-maven-repository-index.gz nexus-maven-repository-index.properties 2、到http://search.ma ...
分类:
其他好文 时间:
2017-05-19 01:01:15
阅读次数:
186
摘要: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener Maven项目下update maven后Eclipse报错:java.java.lang.ClassNotFoun ...
分类:
其他好文 时间:
2017-05-18 09:48:49
阅读次数:
130