自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

转载 阿里云ecs服务器公网ip除了能telnet通22端口,其他如tomcat的8080端口telnet不通,原来需要添加安全组规则...

免费申请了一台阿里云ecs服务器,安装了tomcat后外网访问不了测试页面,ping服务器公网没问题,telnet公网8080端口连不了,22端口却可以,后面发现需要添加安全组规则里增加入方向端口,如下: 转载于:https://www.cnblogs.com/chuansao/p/8192989.html...

2018-01-04 14:12:00 1155

转载 maven依赖里redis的依赖spring-boot-starter-data-redis和spring-boot-starter-redis有什么区别?...

maven依赖里redis的依赖spring-boot-starter-data-redis和spring-boot-starter-redis有什么区别? spring-boot-starter-data-redis有的类和方法没有,不知道是不是版本更新了的原因 转载于:https://www.cnblogs.com/chuansao/p/7490391.html...

2017-09-07 16:20:00 2364

转载 sts里springboot工程main方法所在的类放外层包

如放红框所在的包里启动报错,放外一层正常启动: 转载于:https://www.cnblogs.com/chuansao/p/7471691.html

2017-09-03 23:22:00 244

转载 maven <artifactId>spring-boot-starter-parent</artifactId>里配置的版本<version>1.3.0.M1</version>和<version>...

用<version>1.3.0.M1</version>时test类里注解@SpringApplicationConfiguration正常,用1.5.6.RELEASE报错,怀疑后者版本已经对注解有所修改 1.3.0.M1版本还要依赖: <repositories> <repository> &lt...

2017-09-03 23:19:00 1025

转载 STS(Spring Tool Suite)导入的工程的代码报错,提示获取不到需要的jar,原来是sts里读取maven路径没改...

导入spring boot工程后有红色小叹号,代码也有错误提示: 排查发现是maven已经修改了本地仓库路径((默认在系统的个人文件夹下的.m2目录下:C:\Users\*\.m2\repository),而sts默认读取的还是.m2目录下的jar: 两个路径不同导致。 一、重新配置一个maven,使用默认路径,删除原来下载的jar,重新下载,运行正常。二、或者修改s...

2017-08-19 13:42:00 1149

转载 spring mvc的工程遇到页面加载jquery失败,提示 ReferenceError: $ is not defined

测试页面代码: <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script><title>首页</title><script type="text/javascript">$().ready(function(){ alert("te...

2017-08-14 13:03:00 310

转载 hibernateTemplate的根据id来删除数据

如下: publicvoiddeleteById(intid){ Useru=newUser(); u.setId(id); hibernateTemplate.delete(u); } 转载于:https://www.cnblogs.com/chuansao/p/4088569.html...

2014-11-11 00:15:00 574

转载 <context:component-scan >需要添加的xmlns与http

xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd 转载于:https://www...

2014-11-07 15:58:00 111

转载 struts2.1.6;spring 注册用户名中文乱码问题

用的是eclipse。注册jsp的文字编码需要是GB18030或者GBK,如下: <%@pagelanguage="java"contentType="text/html;charset=GB18030" pageEncoding="GB18030"%> 在web.xml文件里加(在struts2的filter前面): <filte...

2014-11-07 00:33:00 107

转载 面向接口编程

如List list = new ArrayList(),List是接口,ArrayList是其实现。类似的Dao与DaoImpl;Manager与ManagerImpl 转载于:https://www.cnblogs.com/chuansao/p/4077646.html

2014-11-05 23:55:00 81

转载 spring2.5.6 jar包

aspectjrt.jar aspectjweaver.jar cglib-nodep-2.1_3.jar common-annotations.jar commons-dbcp.jar commons-logging-1.1.1.jar commons-pool.jar spring.jar Spring3.0包有区别 转载于:https://www.cnblo...

2014-11-05 12:03:00 125

转载 Struts2的DMI动态方法调用

Struts2的DMI动态方法调用:!后面跟方法名 struts.xml里要加<constant name="struts.enable.DynamicMethodInvocation" value="true"/> 因为有的版本默认是false 转载于:https://www.cnblogs.com/chuansao/p/4075792.html...

2014-11-05 11:04:00 90

转载 Struts2.1.6 jar包

commons-fileupload-1.2.1.jsr commons-io-1.3.2.jar commons-logging-1.1.jar freemarker-2.3.13.jar ognl-2.6.11.jar struts2-core-2.1.6.jar xwork-2.1.2.jar 转载于:https://www.cnblogs.com/chuans...

2014-11-05 00:20:00 97

转载 Hibernate3.3.2 jar包

antlr-2.7.6.jar commons-collections-3.1.jar dom4j-1.6.1.jar ejb3-persistence.jar hibernate3.jar hibernate-annotations.jar hibernate-commons-annotations.jar javassist-3.9.0.GA.jar jta-1.1....

2014-11-04 22:31:00 164

转载 动态代理可以用在jsp权限、日志、效率的审查、事务等

动态代理可以用在jsp权限、日志、效率的审查、事务等上面 转载于:https://www.cnblogs.com/chuansao/p/4070202.html

2014-11-02 22:54:00 95

转载 @Pointcut在eclipse运行出错

@Pointcut("execution(public * com.dao..*.*(..))") public void myMethod(){}; 其他方法调用myMethid()如: @Before("myMethod()") 运行时报错,查到另一个解释是eclipse版本太新,换个旧版本就解决了,不知道还有没有其他解决方法。 转载于:https://www.cnblog...

2014-11-02 22:26:00 138

转载 @Scope("prototype")创建的对象为什么会一样?

用Annotation的@Scope("prototype")实验两个对象还是相等的,用xml的scope="prototype"就不一样,代码如下: import org.springframework.context.annotation.Scope;import org.springframework.stereotype.Component; import com.dao.U...

2014-11-01 16:55:00 229

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除