zoukankan      html  css  js  c++  java
  • MyBatis

                    Tbuser record = new Tbuser();
    		TbuserWithBLOBs bloBs = tbuserMapper.selectByPrimaryKey((long) 34);
    		bloBs.setCardid("00000");
    		tbuserMapper.updateByPrimaryKeyWithBLOBs(bloBs);
    		
    		TbuserExample tbuserExample = new TbuserExample();
    		db.TbuserExample.Criteria criteria = tbuserExample.createCriteria();
    		criteria.andIdGreaterThan((long) 34);
    		List<Tbuser> listtbuser = tbuserMapper.selectByExample(tbuserExample);
    		for(Tbuser tbuser : listtbuser) {
    			System.out.println(tbuser.getPwd());
    		}
    		return bloBs.getPwd();
    

      

    @RequestMapping(value = "/GetHeadImg",method = RequestMethod.GET)
    	@ResponseBody
    	public ResponseEntity<byte[]> GetHeadImg() {
    		TbuserWithBLOBs bloBs = tbuserMapper.selectByPrimaryKey((long) 34);
    		HttpHeaders headers = new HttpHeaders();
            headers.set("Content-Type", "image/jpg");
            return new ResponseEntity<byte[]>(bloBs.getUserimg(), headers, HttpStatus.OK);
    	}
    

      

  • 相关阅读:
    strstr 函数的实现
    函数模板与模板函数
    内核态和用户态
    最短路径算法(跟新SPFA,Ford)
    P1042 乒乓球
    P2347 砝码称重
    P1087 FBI树
    P1540 机器翻译
    P1028 数的计算
    P1067 多项式输出
  • 原文地址:https://www.cnblogs.com/ahuo/p/7513609.html
Copyright © 2011-2022 走看看