Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
a6f17eda
提交
a6f17eda
编写于
5年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
e99e7a0e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
158 行增加
和
3 行删除
+158
-3
README.md
...c/main/java/com/ibiz5/app/extensions/controller/README.md
+3
-3
IBZ5CUSTOMERController.java
...in/java/com/ibiz5/sample/rest/IBZ5CUSTOMERController.java
+67
-0
web_appindexview.json
sample-srv/src/main/resources/appmenu/web_appindexview.json
+88
-0
未找到文件。
sample-srv/src/main/java/com/ibiz5/app/extensions/controller/README.md
浏览文件 @
a6f17eda
...
...
@@ -3,20 +3,20 @@
#重写RestController类
注:IDEA中可以打开基类RestController文件,鼠标点中基类RestController类名,按Alt+Enter,弹出的操作菜单中选择Create Subclass,选中此目录完成快速重写
App
Main启动类中设置排除被重写的基类
Web
Main启动类中设置排除被重写的基类
```
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
App
Main
extends
SpringBootServletInitializer
{
public
class
Web
Main
extends
SpringBootServletInitializer
{
public
static
void
main
(
String
[]
args
)
{
SpringApplicationBuilder
builder
=
new
SpringApplicationBuilder
(
VueR6DevMain
.
class
);
...
...
This diff is collapsed.
Click to expand it.
sample-srv/src/main/java/com/ibiz5/sample/rest/IBZ5CUSTOMERController.java
0 → 100644
浏览文件 @
a6f17eda
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
();
}
}
This diff is collapsed.
Click to expand it.
sample-srv/src/main/resources/appmenu/web_appindexview.json
0 → 100644
浏览文件 @
a6f17eda
{
"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"
:
""
}]
}
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录