![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 54
西门不止会吹雪
这个作者很懒,什么都没留下…
展开
-
doris使用笔记
doris使用笔记,未完待续原创 2022-09-07 15:12:59 · 865 阅读 · 0 评论 -
ERROR: column “xxx“ is of type date but expression is of type character varying
问题### Cause: org.postgresql.util.PSQLException: ERROR: column "take_effect_start_time" is of type date but expression is of type character varying 建议:You will need to rewrite or cast the expression. 位置:193; bad SQL grammar []; nested exception is org原创 2022-05-01 09:00:00 · 6257 阅读 · 0 评论 -
mybatis+postgresql实现根据参数选择对应schema
问题postgresql有多个schema,在一个应用中,去到不同schema取数据,只是常规配置已不能满足需求。spring: datasource: driverClassName: org.postgresql.Driver url: jdbc:postgresql://127.0.0.1:5432/bd username: root password: root解决获取访问用户对应的schema,放入上下文public class UserCont原创 2022-04-28 11:03:13 · 1284 阅读 · 0 评论 -
swagger加请求头(测试带token的请求)
现在大家一般都是使用SpringBoot写RESTful接口, 但是在测试带有token的请求的时候, 就有点难受了. 传统的PostMan就有点让人炸毛了. 但是现在Swagger出现了.(SpringBoot简直和Swagger是天作之和)swagger的整合细节就不在这里说了, 下面进入正题:@Configurationpublic class Swagger2Config { @Bean public Docket createRestApi() { //添加原创 2020-11-24 14:00:06 · 2820 阅读 · 0 评论 -
简述:Builder 使用创建者模式又叫建造者模式。简单来说,就是一步步创建一个对象,它对用户屏蔽了里面构建的细节,但却可以精细地控制对象的构造过程。
转自:https://www.jianshu.com/p/d08e255312f9基础使用@Builder注释为你的类生成相对略微复杂的构建器API。@Builder可以让你以下面显示的那样调用你的代码,来初始化你的实例对象:Student.builder() .sno( "001" ) .sname( "admin" ) .sage( 18 ) .sphone(..转载 2020-11-24 11:47:58 · 263 阅读 · 0 评论 -
< Sql >标签
Mybatis的 < Sql >标签重复的SQL预计永远不可避免,标签就是用来解决这个问题的<sql id="sql1">id,name,age,gender</sql><select id="getPerson" parameterType="int" resultType="orm.Person"> select <include refid="sql1"></include> from Pers原创 2020-09-03 14:31:08 · 5433 阅读 · 0 评论