⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 velocitytest.java

📁 struts+spring+hibernate自创框架
💻 JAVA
字号:
package com.pegasus.framework.test;


public class VelocityTest {
	public static void main(String[] args) throws Exception {
		/* first, get and initialize an engine 
		VelocityEngine ve = new VelocityEngine();
		ve.init();
		/* next, get the Template 
		Template t = ve.getTemplate("hellosite.vm");
		 create a context and add data 
		VelocityContext context = new VelocityContext();
		context.put("name", "Eiffel Qiu");
		context.put("site", "http://www.j2medev.com");
		 now render the template into a StringWriter 
		StringWriter writer = new StringWriter();
		t.merge(context, writer);
		 show the World 
		System.out.println(writer.toString());*/
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -