21k 19 分钟

Unit Test Solution

Purpose
Background
Test Method

  1. 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.

7.4k 7 分钟

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.

6k 5 分钟

  1. 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

3.7k 3 分钟

  1. 页面的切换,如我在 liferay-springmvc-test 下面创建一个新的 index.jsp, 想要容器初始化时加载这个页面,可以通过设置 PortletViewController.java
5.6k 5 分钟

  1. 项目中连接数据库一般会使用spring自带的jdbc模板,这个jdbc访问的流程一般是从DAO开始,通过配置xml中的bean引用,指向jdbctemplate,注意maven项目引入spring-jdbc依赖
602 1 分钟

使用 eclipse 开启远程调试

  1. 打开 tomcat 的 bin 目录,找到 setenv.sh (注意的是 windows 环境下是修改.bat,linux 下是修改.sh),在末尾添加
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

其中 address=5005 是设置调试端口,不要和其他端口冲突

2.4k 2 分钟

Maven 生成的 liferay 项目导入 eclipse 后需要在 eclipse 里部署 tomcat,启动服务器和添加项目方便!

  1. 打开 eclipse,将下载好的 liferay 服务器添加进去,双击服务器,设置服务器启动参数:
    (1) 打开 Generate Information 下面的 “open launch configuration”;
    (2) 选择 “Arguments”
2.8k 3 分钟

  1. 错误信息
    当终端执行:mvn clean package 时候,出现
    错误 1:Failed to determine Java version for profile tiger
    错误 2:maven-compiler-plugin is missing
    错误 3:maven-surefire-plugin is missing