打开set
Editor->File and Code Templates -> Class
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
#set($arr =
[
"这一路上走走停停",
"从前初识这世间,万般流连",
"看着天边似在眼前,也甘愿赴汤蹈火去走它一遍",
"我曾难自拔于世界之大,也沉溺于其中梦话",
"我仍感叹于世界之大,也沉醉于儿时情话"
]
)
#set($code = ${DATE} + ${TIME})
#set($hash = $code.hashCode() % $arr.size())
/**
* <p>
*
* </p>
* ${arr.get($hash)}
* @author: GoslingWu
* @date: ${YEAR}-${MONTH}-${DAY}
*/
public class ${NAME} {
}