1.代码 

        @Autowired
        private  JdbcTemplate jdbcTemplate;               
        public String getPicpath(String name)
        { 
          Map mp =  (Map)jdbcTemplate.queryForMap("select * from picInfo where id = '"+name+"'");
          String path= (String)mp.get("content");
          return path;
        }

 其实content是我的表的一列

卜若的代码笔记系列-Web系列-SpringBoot-第二十章:jdbc向sqlserver请求一行数据-3220

 

相关文章:

  • 2021-07-27
  • 2021-08-26
  • 2021-12-20
  • 2021-05-25
  • 2021-11-23
  • 2021-04-02
  • 2021-05-27
  • 2021-08-02
猜你喜欢
  • 2021-11-04
  • 2021-08-05
  • 2021-05-30
  • 2021-07-29
  • 2021-10-22
  • 2022-01-14
  • 2021-10-04
相关资源
相似解决方案