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

ibizdev提交

上级 49047d9b
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>demo-srv</artifactId>
<name>demo-srv</name>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
</parent>
<properties>
<junit.version>4.12</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package cn.ibizlab.demo;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.SpringApplication;
@SpringBootApplication
public class demoMain{
public static void main(String[] args) {
SpringApplication.run(demoMain.class, args);
}
}
\ No newline at end of file
package cn.ibizlab.demo.springboot.rest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.ibizlab.demo.springboot.domain.DBET;
import org.springframework.beans.factory.annotation.Autowired;
import cn.ibizlab.demo.springboot.service.DBETService;
@RestController
public class DBETController{
@Autowired
private DBETService dbetService;
@PostMapping(value="/demo/springboot/dbet/maineditform/update")
public DBET mainEditFormUpdate(DBET entity){
this.dbetService.update(entity);
return entity;
}
@PostMapping(value="/demo/springboot/dbet/maineditform/remove")
public DBET mainEditFormRemove(DBET entity){
this.dbetService.remove(entity);
return entity;
}
@PostMapping(value="/demo/springboot/dbet/maineditform/getdraft")
public DBET mainEditFormGetDraft(DBET entity){
this.dbetService.getDraft(entity);
return entity;
}
@PostMapping(value="/demo/springboot/dbet/maineditform/get")
public DBET mainEditFormGet(DBET entity){
this.dbetService.get(entity);
return entity;
}
@PostMapping(value="/demo/springboot/dbet/maineditform/create")
public DBET mainEditFormCreate(DBET entity){
this.dbetService.create(entity);
return entity;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册