Vision Unit Test
Unit Test Solution
Purpose
Background
Test Method
- Testng
(1) Introduction
(2) Features
(3) How to Develop by Testng
Appendix
Purpose
This document describes some unit test solutions, it is a reference for developing unit test solution in dashboard client and server.
vision server installation guide
Purpose
Vision consists of server side and portlet/dashboard side, server side is deployed to Vision server box and portlet/dashboard side is deployed to Portal box.
ehcache research
- Purpose
This document describes some cache solutions, it is a reference for developing cache solution in dashboard server.
In current dashboard, when loading the data from database, often the performance is not good enough, by introducing cache into dashboard, performance should be get improved.
Why Need Cache
liferay集成springmvc学习笔记
- 页面的切换,如我在 liferay-springmvc-test 下面创建一个新的 index.jsp, 想要容器初始化时加载这个页面,可以通过设置 PortletViewController.java
spring jdbctemplate的使用
- 项目中连接数据库一般会使用spring自带的jdbc模板,这个jdbc访问的流程一般是从DAO开始,通过配置xml中的bean引用,指向jdbctemplate,注意maven项目引入spring-jdbc依赖
eclipse开启远程调试
使用 eclipse 开启远程调试
- 打开 tomcat 的 bin 目录,找到 setenv.sh (注意的是 windows 环境下是修改.bat,linux 下是修改.sh),在末尾添加
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
其中 address=5005 是设置调试端口,不要和其他端口冲突
eclipse部署liferay服务器
Maven 生成的 liferay 项目导入 eclipse 后需要在 eclipse 里部署 tomcat,启动服务器和添加项目方便!
- 打开 eclipse,将下载好的 liferay 服务器添加进去,双击服务器,设置服务器启动参数:
(1) 打开 Generate Information 下面的 “open launch configuration”;
(2) 选择 “Arguments”
Maven生成liferay spring mvc时打包出错
- 错误信息
当终端执行:mvn clean package 时候,出现
错误 1:Failed to determine Java version for profile tiger
错误 2:maven-compiler-plugin is missing
错误 3:maven-surefire-plugin is missing
Maven生成liferay项目
From Mercy:
https://my.oschina.net/mercyyang/blog/607773
使用 maven 生成 liferay portlet 项目:








