ECharts-Java类库地址:http://git.oschina.net/free/ECharts
百度ECharts地址:http://echarts.baidu.com/
大概在5个月前的时候,有个项目需要用到图表,百度ECharts很不错,就选择了ECharts。
我的项目是SpringMVC + Mybatis,当从数据库获取数据后,我不知道该如何处理这些数据了,是传到前台拼ECharts的Option结构还是在后台拼Option的JSON结构?...
分类:
编程语言 时间:
2015-01-28 11:16:24
阅读次数:
805
有了Hibernate的开发基础,上手MyBatis是非常快的。但是在实际应用中,还是遇到了一些问题。总结一下,分享出来:
1、使用插件“mybatisGenerator”生成的辅助代码 Example做组合查询,非常方便,如下:
AfficheExample example = new AfficheExample();
Criteria cri = example.createC...
分类:
其他好文 时间:
2015-01-27 23:36:58
阅读次数:
381
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Statement returned more than one row, whe...
分类:
其他好文 时间:
2015-01-27 21:34:41
阅读次数:
807
mapper.xml
<?xml?version=?"1.0"?encoding?="UTF-8"??>
<!DOCTYPE?mapper
PUBLIC?"-//mybatis.org//DTD?Mapper?3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"?>
<mapper?namespace="com....
分类:
其他好文 时间:
2015-01-27 20:28:36
阅读次数:
285
转自:http://www.yihaomen.com/article/java/302.htm
(读者注:其实这个应该叫做很基础的入门一下下,如果你看过Hibernate了那这个就非常的简单)
(再加一条,其实大家可以看官方的教程更好些:http://mybatis.github.io/mybatis-3/,而且如果英文不是很好的那就看中文的:http://mybatis.github.io/...
分类:
其他好文 时间:
2015-01-27 18:24:53
阅读次数:
333
主要用到了jsqlparser,前面有篇博客介绍过:
JAVA - Sql解析工具jsqlparser简单使用
为了给Mybatis分页插件增加对sqlserver的支持,专门写了这样一个独立的工具,只依赖jsqlparser。
分页插件地址:http://git.oschina.net/free/Mybatis_PageHelper
SqlServer分页转换...
分类:
数据库 时间:
2015-01-27 15:06:28
阅读次数:
291
Intellij IDEA 14 作为Java IDE 神器,接触后发现,非常好用,对它爱不释手,打算离开eclipse和myeclipse,投入Intellij IDEA的怀抱。
然而在使用的过程中会发现Intellij IDEA也有一些不尽如意的地方,难免会有些不爽:Intellij IDEA 的插件库远不及eclipse的丰富。 mybatis-generator在eclipse...
分类:
其他好文 时间:
2015-01-27 13:19:53
阅读次数:
35365
本篇文章将通过一个简单显示用户信息的实例整合Spring mvc+mybatis+Maven+velocity+mysql.
对于实现整合的重点在于以下几个配置文件的实现
1.Maven依赖包
2.spring配置文件(springContext-user.xml)
3.mybatis配置文件(MyBatis-User-Configuration.xml)
4.spring-mvc配置文件(spring-mvc.xml)
5.web.xml配置文件...
分类:
数据库 时间:
2015-01-27 09:26:11
阅读次数:
316
Activiti 的业务实体层使用 PersistentObject 向数据层传递数据;MyBatis 使用Mapping中的 id 执行SQL 逻辑;本文讲述了从Activiti PersistentObject 到 MyBatis SQL id 的映射规则。一、数据层和数据的关系二、PersistentObject 对象三、MyBatis 对应的SQL ID1、insert
....
分类:
移动开发 时间:
2015-01-26 17:07:00
阅读次数:
373