提交 0875c6f1 编写于 作者: IBZGIT01's avatar IBZGIT01

ibizdev提交

上级 7e7548a9
...@@ -3,6 +3,9 @@ package cn.ibizhub.demo.springmvc.rest; ...@@ -3,6 +3,9 @@ package cn.ibizhub.demo.springmvc.rest;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import cn.ibizhub.demo.springmvc.domain.DBET;
import cn.ibizhub.demo.springmvc.service.DBETService;
@RestController @RestController
public class DBETController{ public class DBETController{
...@@ -10,27 +13,27 @@ public class DBETController{ ...@@ -10,27 +13,27 @@ public class DBETController{
@Autowired @Autowired
private DBETService dbetService; private DBETService dbetService;
@PostMapping(value="/demo/springmvc/dbet/maineditform/update") @RequestMapping(value="/demo/springmvc/dbet/maineditform/update")
public DBET mainEditFormUpdate(DBET entity){ public DBET mainEditFormUpdate(DBET entity){
this.dbetService.update(entity); this.dbetService.update(entity);
return entity; return entity;
} }
@PostMapping(value="/demo/springmvc/dbet/maineditform/remove") @RequestMapping(value="/demo/springmvc/dbet/maineditform/remove")
public DBET mainEditFormRemove(DBET entity){ public DBET mainEditFormRemove(DBET entity){
this.dbetService.remove(entity); this.dbetService.remove(entity);
return entity; return entity;
} }
@PostMapping(value="/demo/springmvc/dbet/maineditform/getdraft") @RequestMapping(value="/demo/springmvc/dbet/maineditform/getdraft")
public DBET mainEditFormGetDraft(DBET entity){ public DBET mainEditFormGetDraft(DBET entity){
this.dbetService.getDraft(entity); this.dbetService.getDraft(entity);
return entity; return entity;
} }
@PostMapping(value="/demo/springmvc/dbet/maineditform/get") @RequestMapping(value="/demo/springmvc/dbet/maineditform/get")
public DBET mainEditFormGet(DBET entity){ public DBET mainEditFormGet(DBET entity){
this.dbetService.get(entity); this.dbetService.get(entity);
return entity; return entity;
} }
@PostMapping(value="/demo/springmvc/dbet/maineditform/create") @RequestMapping(value="/demo/springmvc/dbet/maineditform/create")
public DBET mainEditFormCreate(DBET entity){ public DBET mainEditFormCreate(DBET entity){
this.dbetService.create(entity); this.dbetService.create(entity);
return entity; return entity;
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
http://www.springframework.org/schema/beans/spring-beans.xsd xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
">
<context:component-scan base-package="cn.ibizhub.demo.*.service"/>
</beans> </beans>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册