`
smallTengGer
  • 浏览: 33486 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
IntelliJ idea的maven工程老是提示:Cannot Resolve xx.class,如图 编译时异常:   项目是多模块项目,我已经在项目的pom.xml文件中添加了相应的依赖,如图:  在libraries中已经有了相应的包,   此时需要进入设置   选择dependencies 添加相应的module       
import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.apache.tools.ant.Project; import org.apache.tools.ant.taskdefs.Expand; import org.apache.tools.ant.taskdefs.Zip; import org.apache.tools.ant.types.FileSet; import java.io.File; public class ZipUtil { private ...
 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.my.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=tru ...
INFO: Illegal access: this web application instance has been stopped already.  Could not load com.mchange.v2.c3p0.impl.PoolBackedDataSourceBaseBeanInfo.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused ...
之前用的是spring3.0.5+quartz-1.6.5,以下是spring的xml代码:   <!--周期数据定时入库--> <bean id="allDataStorage"    class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" > <property name="targetObject" ref= ...
项目上有个执行定时任务的需求,我选择的是Spring Quartz。但是这个需求需要在不同的定时时间向方法传送不同的参数。发现可以使用arguments参数实现。 比如: <bean id="allDataStorage" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" > <property name="targetObject" ref="iRawDataStorageService&quo ...
在做开发的时候,我时候我们需要让项目通过公网进行测试。这时候我们就可以使用ngrok这个软件了。它能将本地的一个端口映射到公网。 操作方法: 1.下载ngrok这个软件(可以去网上下载,也可以在我发的附件下载) 2.在CMD命令中先切换到ngrok所在的位置再进行如下操作 方法:ngrok -config ngrok.cfg -subdomain example 8080 说明: example-自己任意设置; 8080-tomcat的端口号 例如: ngrok -config ngrok.cfg -subdomain ht 8080 然后在浏览器输入: http://ht.tunn ...
在Java开发中涉及到一些文件路径问题,可能在Windows环境下不会出现任何问题。如果项目部署在linux环境下,可能会出现问题。 例如: Windows :“\” Linux : “/” 为了保证文件路径与平台无关,可以使用File.separator方法来代替斜杠。
最近需要单独开发一个测试功能。为了方便,就把原来的项目重新从SVN上检出了一份,并重命名。最后配置好Spring Quarty配置文件。发现定时任务执行了两次。一直以为是在Spring的配置文件上出了问题。后来猜想会不会是在web项目启动的时候,加载了两次。然后写了个servletcontextlistener 监听器,添加打印输出。并配置好相应的web.xml。启动Tomcat。发现打印了两次。最后在网上寻找解决办法,发现是因为项目的命令问题。因为我的项目,从SVN检出来时,重新命了名。解决办法为: 1.在你的项目上点右键->properties->web Project Sett ...
今天使用Mybatis做一个简单查询,给方法传入一个String的参数。根据参数查询某条数据的id并返回。mapper和配置文件都没有写错。但是老是报错。至于是什么错,这里就不要说了。关键来了,搜寻了各种资料都没解决问题。最后无意间发现数据库连接的配置文件没有转码。jdbc.url=jdbc:mysql://localhost:3306/jnssd?characterEncoding=UTF-8。以后开发项目,这个一定要检查。
一、创建domain对象: public class MyAjax { private String name; private int pwd; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getPwd() { return pwd; } public void setPwd(int pwd) { this.pwd = pwd; } } ...
<div class="iteye-blog-content-contain" style="font-size: 14px"></div>  Java路径中的空格问题 1、 URLTest.class.getResource("/").getPath();    URLTest.class.getResource("/").getFile();    URLTest.class.getClassLoader().getResource("").getPath();  ...
1.在eclipse里面新建一个项目或已有的项目; 2.导入     activation.jar       axis.jar  
  package testaxis;   import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map;   import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.clie ...

webService

http://www.webxml.com.cn/zh_cn/
Global site tag (gtag.js) - Google Analytics