![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
鱼片橙子
这个作者很懒,什么都没留下…
展开
-
Springboot连接数据库
连接mysql数据库架包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependenc...原创 2020-02-20 20:54:39 · 293 阅读 · 0 评论 -
list转json时保存值为空的属性
String param=JSONObject.toJSONString(fhlist, SerializerFeature.WriteMapNullValue);效果[{"channel_id":1,"channel_name":"测试通道","channel_Url":null}]maven的代码<dependency> ...原创 2019-07-19 19:06:17 · 2352 阅读 · 0 评论 -
springboot+Poi实现Excel的导出
pom<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>RELEASE</version> </dependency> <dependency&g...原创 2019-07-29 18:32:12 · 121 阅读 · 0 评论 -
springboot读取application.yml中的值
yml中自定义一些变量var: analyze_url: test ocr_url: test microsoft_key: test映射到类变量中@Getter@Componentpublic class varModel { @Value("${var.analyze_url}") private String analyze_url; ...转载 2019-07-20 16:55:29 · 2803 阅读 · 2 评论 -
springboot上传图片后台无法获得数据
用springboot上传图片后台一直获取不到数据,原因后台 @RequestMapping(value="/savepicture", method = RequestMethod.POST) public @ResponseBody String savepicture( @RequestParam("file") MultipartFile image){ ...原创 2019-07-22 14:55:27 · 622 阅读 · 0 评论 -
springboot+mybatis在返回map数据时,为空不返回字段的解决办法
直接在yml配置文件中添加:mybatis: typeAliasesPackage: com.jzb.**.**.entity mapperLocations: classpath:/mapping/*.xml configuration: map-underscore-to-camel-case: true #自动开启驼峰规则映射 call-setters...原创 2019-08-15 11:15:19 · 2380 阅读 · 0 评论