提交 a6f17eda 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 e99e7a0e
......@@ -3,20 +3,20 @@
#重写RestController类
注:IDEA中可以打开基类RestController文件,鼠标点中基类RestController类名,按Alt+Enter,弹出的操作菜单中选择Create Subclass,选中此目录完成快速重写
AppMain启动类中设置排除被重写的基类
WebMain启动类中设置排除被重写的基类
```java
import org.springframework.cache.annotation.EnableCaching;
@ComponentScans({
@ComponentScan(basePackages = {"com.ibiz5"}
,excludeFilters={@Filter(type=FilterType.REGEX,pattern="com.ibiz5.app.testmodule.controller.TestEntityController")}
,excludeFilters={@Filter(type=FilterType.REGEX,pattern="com.ibiz5.web.testmodule.controller.TestEntityController")}
),
})
@EnableCaching
public class AppMain extends SpringBootServletInitializer{
public class WebMain extends SpringBootServletInitializer{
public static void main(String[] args) {
SpringApplicationBuilder builder = new SpringApplicationBuilder(VueR6DevMain.class);
......
package com.ibiz5.sample.rest;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.sql.Timestamp;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonProperty.Access;
import com.ibiz5.ibizutil.domain.ActionResult;
import com.ibiz5.sample.service.IBZ5CUSTOMERService;
import com.ibiz5.ibizutil.domain.AutoCompleteItem;
import com.ibiz5.sample.domain.IBZ5CUSTOMER;
import com.ibiz5.sample.service.dto.IBZ5CUSTOMERSearchFilter;
import org.springframework.cglib.beans.BeanGenerator;
import org.springframework.cglib.beans.BeanMap;
import org.springframework.util.StringUtils;
import java.io.IOException;
import com.ibiz5.ibizutil.errors.BadRequestAlertException;
import org.springframework.validation.annotation.Validated;
import org.springframework.http.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import com.ibiz5.ibizutil.domain.RedirectResult;
import javax.validation.constraints.NotBlank;
import com.ibiz5.ibizutil.domain.AutoCompleteItem;
import java.math.BigInteger;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.security.access.prepost.PreAuthorize;
@RestController
public class IBZ5CUSTOMERController{
@Autowired
private IBZ5CUSTOMERService ibz5customerService;
/**
* 获取服务对象
*/
protected IBZ5CUSTOMERService getService(){
return this.ibz5customerService;
}
/**
* 用于权限校验 使用
* @return
*/
public IBZ5CUSTOMER getEntity(){
return new IBZ5CUSTOMER();
}
}
{
"name":"appmenu",
"logicname":"appmenu",
"appname":"网页应用示例"
,"items":[{
"id":"801bacb689744f3de00c39b84618cbf5"
,"name":"menuitem1"
,"text":"订单管理"
,"type":"MENUITEM"
,"counterid":""
,"tooltip":"订单管理"
,"expanded":false
,"separator":false
,"hidden":false
,"hidesidebar":false
,"opendefault":false
,"iconcls":"fa fa-file-text-o"
,"icon":""
,"textcls":""
,"appfunctag":""
,"resourcetag":""
},{
"id":"edcf745c76c1c398b5e5511586f4e4c8"
,"name":"menuitem2"
,"text":"产品管理"
,"type":"MENUITEM"
,"counterid":""
,"tooltip":"产品管理"
,"expanded":false
,"separator":false
,"hidden":false
,"hidesidebar":false
,"opendefault":false
,"iconcls":"","icon":""
,"textcls":""
,"appfunctag":""
,"resourcetag":""
,"items":[{
"id":"c5bc932f5757ebd366173e0c7a76ddc8"
,"name":"menuitem3"
,"text":"硬件产品"
,"type":"MENUITEM"
,"counterid":""
,"tooltip":"硬件产品"
,"expanded":false
,"separator":false
,"hidden":false
,"hidesidebar":false
,"opendefault":false
,"iconcls":"","icon":""
,"textcls":""
,"appfunctag":""
,"resourcetag":""
},{
"id":"243c09af5d8b79a84f7c7098d049e932"
,"name":"menuitem4"
,"text":"软件产品"
,"type":"MENUITEM"
,"counterid":""
,"tooltip":"软件产品"
,"expanded":false
,"separator":false
,"hidden":false
,"hidesidebar":false
,"opendefault":false
,"iconcls":"","icon":""
,"textcls":""
,"appfunctag":""
,"resourcetag":""
}]
},{
"id":"fed5764c659013ead35f39d5be6c8bcc"
,"name":"menuitem5"
,"text":"系统管理"
,"type":"MENUITEM"
,"counterid":""
,"tooltip":"系统管理"
,"expanded":false
,"separator":false
,"hidden":false
,"hidesidebar":false
,"opendefault":false
,"iconcls":"","icon":""
,"textcls":""
,"appfunctag":""
,"resourcetag":""
}]
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册