![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
viaco2love
这个作者很懒,什么都没留下…
展开
-
easyexcel 使用excelType 导出xsl 注意不是xlsx
easyexcel 使用excelType 导出xsl 注意不是xlsx。这么简单的内容都得找半天,真坑原创 2022-09-16 16:42:08 · 915 阅读 · 0 评论 -
jpa auto-ddl 打印错误日志
logback-debug-local.xml 日志配置文件中添加 <logger name="org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" /> </l.原创 2022-04-18 00:12:28 · 202 阅读 · 0 评论 -
mybatis-plus 如何多表查询
* <br/> 方式1. (推荐)在mapper层 添加 @select 然后sql语句:left join. @Select("SELECT\n" + "\t ${ew.sqlSelect} \n" + "FROM\n" + "\t "+"${tabs.tabAe}"+" tabAe \n" + "LEFT JOIN "+"${tabs.tabBe}"+" tabBe ON ..原创 2022-04-16 15:44:51 · 1694 阅读 · 0 评论 -
‘springfox.documentation.spring.web.plugins.Docket‘ that could not be found
通过我的分析,是swagger 被关闭了。而关闭的原因是在Swagger2Config上使用了@Profile注解标识. 而当前环境prod 没有在里面 所以改成 @Autowired(required=false) Docket docket; 或者修改 spring: profiles: active: local 或者修改Swagger2Config @Profile注解标识或者修改@Component@Profile({"local", "dev", "test"}原创 2022-03-31 14:56:28 · 4097 阅读 · 0 评论 -
1. knife4j 2.x 增强功能 (knife4j-spring-boot-demo)
首先从swagger-bootstrap-ui-demo: knife4j 以及swagger-bootstrap-ui 集成框架示例项目找到knife4j-spring-boot-demo运行看看效果然后把相关的内容复制到自己项目效果就是没有效果直接给出结论:少复制了com.swagger.bootstrap.ui.demo.config.SwaggerConfiguration分析过程如下debug 看看怀疑参数没有传到页面复制k..原创 2021-10-28 14:19:37 · 786 阅读 · 0 评论