SpringBoot
coder_xiaoyou
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
54_在SpringBoot使用nacos
一、依赖完整pom.xml配置<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.or原创 2021-11-06 21:39:59 · 472 阅读 · 0 评论 -
SpringBoot中使用FastJson进行解析
在SpringBoot中,默认情况下,在Controller中返回一个使用@Configuration注解标注的配置类信息,会出现以下异常解决方法:更换默认的json解析框架package com.example.nacosdemo.config;import com.alibaba.fastjson.serializer.SerializerFeature;import com.alibaba.fastjson.support.config.FastJsonConfig;import原创 2021-11-06 17:29:27 · 1809 阅读 · 0 评论 -
SpringBoot下载文件,出现异常:Could not find acceptable representation
在SpringBoot项目中,下载文件,出现异常:接口定义为:public XResponse<Void> exportProject(@PathVariable("projectId") String projectId, HttpServletResponse response) throws Exception 原因:在下载文件时,接口不能有返回值将接口定义修改为:public void exportProject(@Pa原创 2021-04-07 11:02:53 · 852 阅读 · 1 评论
分享