java
文章平均质量分 77
晴天1990
书山有路勤为径,学海无涯苦作舟。
展开
-
Eclipse4.5在线安装Aptana插件及配置代码提示教程
一、Aptana插件官网地址 我在网上试过登陆到aptana官网后点击下载,选择下载eclipse插件版,然后页面给出一串地址:http://download.aptana.com/studio3/plugin/install,页面提示在eclipse上输入这个地址就可安装aptana插件,但结果证明这个地址根本没法使用,eclipse是获取不到插件的。 在网原创 2017-07-27 09:44:50 · 14724 阅读 · 7 评论 -
Spring注解详解
【转】:http://blog.csdn.net/xyh820/article/details/7303330/ 概述注释配置相对于 XML 配置具有很多的优势:它可以充分利用 Java 的反射机制获取类结构信息,这些信息可以有效减少配置的工作。如使用 JPA 注释配置 ORM 映射时,我们就不需要指定 PO 的属性名、类型等信息,如果关系表字段和 PO 属性名、类型都一致转载 2017-09-21 09:41:27 · 293 阅读 · 0 评论 -
Hibernate中hibernateTemplate()方法总结
1:get/load存取单条数据 public Teacher getTeacherById(Long id) { return (Teacher)this.hibernateTemplate.get(Teacher.class, id); } public Teacher getTeacherById(Long id) {原创 2017-09-21 09:16:46 · 2148 阅读 · 0 评论 -
Eclipse安装spring-tool-suite插件
【转】http://blog.csdn.net/gfd54gd5f46/article/details/72824635安装 spring-tool-suite 插件官网地址:https://spring.io/tools/sts/简介: Spring工具套件是一个基于Eclipse的开发环境,用于开发Spring应用程序。它提供了一个现成的使用转载 2017-09-26 11:45:29 · 422 阅读 · 0 评论 -
Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL
【转】:http://www.cnblogs.com/aisam/articles/4686362.html严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundExceptio转载 2017-09-18 11:16:17 · 391 阅读 · 0 评论 -
Mybatis Mapper配置文件sql中的 List Array Map 的foreach 、in
【转】http://blog.csdn.net/qh_java/article/details/50754271在mybatis 的配置文件中我们经常会用到集合 数组以及map的批量查询,这样我们就会经常用到 foreach 了,首先来看看foreach的属性:这张图写的很全,很好就那个了你知道的……知道了这些属性我们就来看看小demo:1、List IntL转载 2017-09-25 10:30:55 · 962 阅读 · 0 评论 -
S2SH整合Shiro之:java.lang.NoSuchMethodException: com.sun.proxy.$Proxy25
【转】:http://10000001.blog.51cto.com/4600383/1405230 问题描述:在S2SH整合Shiro框架的时候,使用Shiro注解时,Struts2执行了Action之后出现了这问题: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy25 即:使用到了代理对象时找不到对转载 2017-09-23 19:49:45 · 1911 阅读 · 1 评论 -
java用POI设置Excel的列宽
【转】:http://blog.csdn.net/duqian42707/article/details/51491312需求:将某个excel中的某一列列宽设置为35(该数值是Excel中显示的列宽值)。 poi中设置列宽的方法为:HSSFSheet.setColumnWidth(int columnIndex, int width);第一个参数好理解–列序号,关键是第二转载 2017-09-15 10:58:49 · 2144 阅读 · 0 评论 -
StringUtils的isBlank与isEmply
【转载】原文地址:http://www.cnblogs.com/XiaoGer/archive/2011/11/06/2238227.html1.public staticboolean isEmpty(String str) 判断某字符串是否为空,为空的标准是 str==null或 str.length()==0 下面是 Strin转载 2017-08-30 11:41:00 · 208 阅读 · 0 评论 -
Failed to convert property value of type [$Proxy0 implementing com.s2hs.dao.UserDAO
【转载】http://blog.163.com/liu_zhenxu@yeah/blog/static/6526635320108921247224/异常信息:13:47:01,093 ERROR ContextLoader:215 - Context initialization failedorg.springframework.beans.factory.BeanCr转载 2017-09-04 17:12:28 · 360 阅读 · 0 评论 -
关于使用Mybatis逆向工程针对Oracle数据库表生成代码需要注意的问题
在使用Mybatis逆向工程针对Oracle数据库表生成代码时需要注意,如果指定的oracle数据库下的多个表空间存在同一张表时,必须要指定schema的值,否则要出现生成的代码和Mapper.xml文件中出现重复的代码和配置,然后导致项目在启动时出现以下错误:Caused by: java.lang.IllegalArgumentException: Result Maps collecti原创 2017-11-15 12:45:40 · 4534 阅读 · 2 评论