![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot
一闪一闪呀
YY,YYDS
展开
-
SpringBoot2集成Swagger2方法
增加pom依赖。 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>${swagger2.version}</version> </...原创 2019-07-25 18:17:05 · 167 阅读 · 0 评论 -
SpringBoot读取resource
Resource resource = new ClassPathResource("templete/demo.xls"); File sourceFile = null; try { sourceFile = resource.getFile(); } catch (IOException e) { e.printStackTrace(); } System.out.prin...原创 2019-08-02 11:19:20 · 719 阅读 · 0 评论 -
Cannot cast ch.qos.logback.classic.servlet.LogbackServletContainerInitializer to javax.servlet.Servl
问题描述 我采用了Servlet3.X,新增加了SPI加载机制,会自动扫描classpath:META-INF/services/javax.servlet.ServletContainerInitializer中的所有这个文件,并加载其中的所有javax.servlet.ServletContainerInitializer的实现类,实现替换web.xml的功能,让你的项目war可以不需要we...原创 2019-08-14 15:21:29 · 3104 阅读 · 0 评论