Skip to content

luowei/trade-impexp

Repository files navigation

#trade-impexp trade-impexp是一个maven项目,其中包含了多个模块

##trade-globle trade-globle也是一个maven项目,是trade-impexp的一个子模块

  1. web框架使用的是spring mvc,采用rest风格;
  2. 持久框架主要使用spring data jpa 结合hibernate provide,部分程序直接使用了jdbc,结合spring jdbcTemplate使用;
  3. 连接池使用了BoneCP,因BoneCP相比C3P0更稳定;
  4. 缓存直接采用ehcache,并对ehcache进行了良好封装;
  5. 系统配置采用json文件存储;
  6. 日志采用了logback,因logback比log4j性能更好;
  7. 图表应用了两种方案:
    • 方案一:使用了open flash chart,应用ofc4j图表框架,使用groovy 程序处理图表数据;
    • 方案二:因考虑到open flash chart组件不够成熟,制作的图表相比highchart差很多,所以后之又改用了highchart js框架输出图表;
  8. 此外此项目中还封装也解压zip文件、解压rar文件、配置工具、动态条件查询、文件操作、泛型、jdbcUtil、QueryUtil、CommonUtil等工具类;
  9. 并配置了maven 的jetty、groovy、mojo、cargo等插件;
  10. 导出excel,使用了spring mvc 的视图技术,并对导入excel视图封装了良好的工具类;

trade-globle视频讲解

1.项目的主要配置及概览 http://www.tudou.com/programs/view/6HqDeYy7guE/

<iframe src="http://www.tudou.com/programs/view/html5embed.action?type=0&code=6HqDeYy7guE&lcode=&resourceId=68930770_06_05_99" allowtransparency="true" scrolling="no" border="0" frameborder="0" style="width:480px;height:400px;"></iframe>

2.代码分析及反射,AOP的灵活应用 http://www.tudou.com/programs/view/AHZeS687Jrk/

<iframe src="http://www.tudou.com/programs/view/html5embed.action?type=0&code=AHZeS687Jrk&lcode=&resourceId=68930770_06_05_99" allowtransparency="true" scrolling="no" border="0" frameborder="0" style="width:480px;height:400px;"></iframe>

3.项目成品与效果预览 http://www.tudou.com/programs/view/JPTEEJSELBI/

<iframe src="http://www.tudou.com/programs/view/html5embed.action?type=0&code=JPTEEJSELBI&lcode=&resourceId=68930770_06_05_99" allowtransparency="true" scrolling="no" border="0" frameborder="0" style="width:480px;height:400px;"></iframe>

##trade-persistent trade-persistent是trade-globle持久化的模块接口部分,待完成中。。

##trade-persistent-impl trade-persistent-impl是trade-globle持久化的模块实现部分,待完成中。。

##trade-service trade-service是trade-globle业务处理的模块接口部分,待完成中。。

##trade-service-impl trade-service-impl是trade-globle业务处理的模块实现部分,待完成中。。

##trade-util trade-util是trade-globle工具模块部分,待完成中。。

##trade-view trade-view是trade-globle视图模块部分,待完成中。。


##其它: 1.先写测试再写实现,速度更快,成效更好; 2.参数尽可能采用对象传递,避免用一般类型传递;


springside: https://github.com/springside/springside4

##maven -pl 选项 maven 在使用 -pl 选项指定的值过滤模块的时候,通过两种方式,一是把 -pl 选项的值当做 groupId:artifactId 来查找, 其次把 -pl 选项的值作为相对路径来查找,相对于用户运行 maven 时的工作目录。

例如有以下项目结构:

all [org.apache.maven:test]
|-- m-1 [org.apache.maven:m1]
|-- m-2 [org.apache.maven:m2]

如果想通过 -pl 选项来指定顶级模块 all 和 m-1 模块,可以使用一下这么命令: mvn -pl org.apache.maven:test,m-1 clean install

About

基于spring mvc,应用spring data jpa,open flash chart,highchart,bootstrap,excel等技术应用一个项目....

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published