首页>代码>spring boot集成ehcache极简入门实例>/springboot-ehcache/src/main/java/com/simon/springbootehcache/controller/UserController.java
package com.simon.springbootehcache.controller; import com.simon.springbootehcache.model.User; import com.simon.springbootehcache.service.IUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author simon */ @RequestMapping("/") @RestController public class UserController { @Autowired private IUserService userService; @RequestMapping(value = "/insert") public String insert(User user) { userService.insert(user); return "新增成功"; } @RequestMapping(value = "/query") public Object insert(String name) { return userService.query(name); } }
最近浏览更多
微信网友_6658091507814400 LV3
2023年9月20日
微信网友_6658063909801984
2023年9月20日
暂无贡献等级
茶茶茶百道qq
2023年9月20日
暂无贡献等级
xuweiwowzy LV5
2023年8月10日
xiaomujiang
2023年8月10日
暂无贡献等级
damowang0022
2023年8月9日
暂无贡献等级
飞呀飞呀飞不放 LV7
2023年8月8日
yyh1252 LV8
2023年8月7日
crosa_Don LV18
2023年8月4日
444105047 LV6
2023年8月2日