You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
748 B
Java

1 year ago
package com.supervision.controller;
import com.supervision.ngbatis.dao.ItemBranchDao;
import com.supervision.ngbatis.domain.ItemBranch;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("test")
@RequiredArgsConstructor
public class TestController {
@Resource
private ItemBranchDao itemBranchDao;
@GetMapping("hello")
public void hello() {
ItemBranch itemBranch = new ItemBranch();
itemBranch.setItemName("退休");
itemBranchDao.insert(itemBranch);
}
}