done infosys 八股文springboot员工管理系统

微服务之间如何通信


工作中怎么validate用户信息,怎么validate token

 

具体是怎么发布的:我又回答了jenkins又回答了aws,晕了,到底是啥

 

hibernate里面的xml,怎么连接到不同的数据库表

 

springboot员工管理系统:新建、更新(老八股文了)

@RequestMapping注解很好用,里面可以指定方法。别的mapping都不需要了
@RequestMapping(path = "/create/{id}", RequestMethod = "PUT")
public createEmployee(String id) {
Employee emp = new Employee(id);
}

//先查询到指定的员工再更新
可以通过 @PathVariable 获取请求地址上的参数。
可用通过 @RequestParam 获取请求体中的参数。
如下例,访问地址 http://localhost:8080/emp/selectOne/3?id2=2 时,
@PathVariable   获取到的就是 3
@RequestParam   获取到的就是 2
    @GetMapping("/selectOne/{id}")
    public Result selectOne(@PathVariable Integer id, @RequestParam Integer id2) {
        return Result.ok();
    }

//更新
@RequestMapping(path = "/emp", RequestMethod = "PUT") 
public createEmployee(@RequestBody Employee emp, ) {
Employee new_employee
= emp;
}

 

用stream打印arraylist的元素
int result = list.Stream().filter(n - > n);

 

原文地址:https://www.cnblogs.com/immiao0319/p/15168754.html