![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
huang__2
这个作者很懒,什么都没留下…
展开
-
关于excel 导出 springboot 报错org.springframework.web.HttpMediaTypeNotAcceptableException
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation 项目都是@ RestController 返回结果都是json 通过response 导出 xlsx 报错 @PostMapping(value = "/exportExcel") public Result<Void> exportExcel(@RequestBody Li原创 2021-12-31 16:26:45 · 2031 阅读 · 0 评论 -
Springboot 集成swagger 报错Error creating bean with name 'linkDiscoverers' defined in class path resourc
2020-04-26 10:58:14.466 WARN 1499 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframewor...原创 2020-04-26 11:10:26 · 2121 阅读 · 0 评论 -
关于springboot test @Mapper ,@Autiwired注入无效的问题
@SpringBootTest() @RunWith(SpringRunner.class) public class ProductMapperTest { @Autowired ProductMapper productMapper; 3:为了给mapper接口 自动根据一个添加@Mapper注解的接口生成一个实现类 怎么注入都是失败,ProductMapper 使用@M...原创 2018-10-10 11:47:53 · 3739 阅读 · 0 评论 -
springboot 自定义一个简单的 starter
1.新建项目 。 启动器只用来做依赖导入; 专门来写一个自动配置模块; idea 下建立空项目 hello-spring-boot-starter 添加两个子模块 spring-boot-starter-autoconfigurer, spring-boot-starter-helloworld。 autoconfigurer 自动配置模块, &lt;!--引入starter的基本配置--&gt...原创 2018-10-10 14:13:56 · 483 阅读 · 0 评论