zoukankan      html  css  js  c++  java
  • 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);

     

  • 相关阅读:
    【2021-08-25】连岳摘抄
    【2021-08-24】对意义的过度扭曲
    【2021-08-23】枕边语
    【2021-08-22】连岳摘抄
    【2021-08-21】旅历尚浅
    【2021-08-20】做事情,等对应好角色去思考
    索引缓冲对象(EBO或IBO )的理解
    vao, vbo的一点拙见
    兔队线段树
    「具体数学」二:和式
  • 原文地址:https://www.cnblogs.com/immiao0319/p/15168754.html
Copyright © 2011-2022 走看看