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