- 博客(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
1204
转载 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
2379
转载 sts里springboot工程main方法所在的类放外层包
如放红框所在的包里启动报错,放外一层正常启动:转载于:https://www.cnblogs.com/chuansao/p/7471691.html
2017-09-03 23:22:00
265
转载 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> <...
2017-09-03 23:19:00
1050
转载 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
1222
转载 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
334
转载 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
600
转载 <context:component-scan >需要添加的xmlns与http
xmlns:context="http://www.springframework.org/schema/context"http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.0.xsd转载于:https://www...
2014-11-07 15:58:00
127
转载 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
127
转载 面向接口编程
如List list = new ArrayList(),List是接口,ArrayList是其实现。类似的Dao与DaoImpl;Manager与ManagerImpl转载于:https://www.cnblogs.com/chuansao/p/4077646.html
2014-11-05 23:55:00
101
转载 spring2.5.6 jar包
aspectjrt.jaraspectjweaver.jarcglib-nodep-2.1_3.jarcommon-annotations.jarcommons-dbcp.jarcommons-logging-1.1.1.jarcommons-pool.jarspring.jarSpring3.0包有区别转载于:https://www.cnblo...
2014-11-05 12:03:00
145
转载 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
110
转载 Struts2.1.6 jar包
commons-fileupload-1.2.1.jsrcommons-io-1.3.2.jarcommons-logging-1.1.jarfreemarker-2.3.13.jarognl-2.6.11.jarstruts2-core-2.1.6.jarxwork-2.1.2.jar转载于:https://www.cnblogs.com/chuans...
2014-11-05 00:20:00
122
转载 Hibernate3.3.2 jar包
antlr-2.7.6.jarcommons-collections-3.1.jardom4j-1.6.1.jarejb3-persistence.jarhibernate3.jarhibernate-annotations.jarhibernate-commons-annotations.jarjavassist-3.9.0.GA.jarjta-1.1....
2014-11-04 22:31:00
184
转载 动态代理可以用在jsp权限、日志、效率的审查、事务等
动态代理可以用在jsp权限、日志、效率的审查、事务等上面转载于:https://www.cnblogs.com/chuansao/p/4070202.html
2014-11-02 22:54:00
113
转载 @Pointcut在eclipse运行出错
@Pointcut("execution(public * com.dao..*.*(..))")public void myMethod(){};其他方法调用myMethid()如:@Before("myMethod()")运行时报错,查到另一个解释是eclipse版本太新,换个旧版本就解决了,不知道还有没有其他解决方法。转载于:https://www.cnblog...
2014-11-02 22:26:00
165
转载 @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
247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人