提交 29a97a23 编写于 作者: zhouweidong's avatar zhouweidong

add

上级 5eb0fc9c
<#ibiztemplate>
TARGET=PSDATAENTITY
</#ibiztemplate>
package ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.domain;
import lombok.Data;
import java.sql.Timestamp;
/**
* 实体[${item.codeName}] 数据对象
*/
@Data
public class ${item.codeName}{
<#list item.getPSDEFields() as defield>
private ${srfjavatype(defield.stdDataType)} ${defield.codeName?lower_case};
</#list>
}
......@@ -14,10 +14,9 @@ public class ${de.codeName}Controller{
<#assign appReqUrl="/" +app.getPKGCodeName()?lower_case + "/"+de.getPSSystemModule().codeName?lower_case +"/"+de.codeName?lower_case ><#comment>拼接当前应用的请求路径</#comment>
@ResponseBody
@RequestMapping(value="${appReqUrl}.do")
public ${de.codeName} index(){
${de.codeName} entity =new ${de.codeName}();
return entity;
@PostMapping(value="${appReqUrl}")
public String hello(){
return String.format("您好,您目前正在访问[%s]实体","${de.codeName}");
}
}
......@@ -7,24 +7,17 @@ TARGET=PSSYSTEM
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<!-- 加载spring容器 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 启动Spring容器的监听器 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- springmvc 前端控制器 -->
<servlet>
<servlet-name>${pub.codeName?lower_case}</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<!-- 默认/WEB-INF/[servlet名字]-servlet.xml加载上下文,
如果配置了contextConfigLocation参数,
将使用classpath:/ibizsys-dispatcher-servlet.xml加载上下文
-->
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/ibizsys-dispatcher-servlet.xml</param-value>
</init-param>
......@@ -32,7 +25,7 @@ TARGET=PSSYSTEM
</servlet>
<servlet-mapping>
<servlet-name>${pub.codeName?lower_case}</servlet-name>
<url-pattern>*.do</url-pattern>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册