![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
不秃头的程序员-飞
这个作者很懒,什么都没留下…
展开
-
Swagger nginx转发请求后无法访问解放方案
Swagger nginx转发请求后无法访问解放方案遇到问题,访问接口文档提示权限不足{"code":-1`在这里插入代码片`,"message":"缺少访问令牌参数"}解决方案 private List<String> excludePathPatterns = Lists.newArrayList( "/doc.html/**", "/swagger-resources/**", "/webjars/*原创 2021-06-22 16:15:26 · 427 阅读 · 0 评论 -
Java 8 Function函数式接口
Java 8 Function函数式接口函数式接口函数式接口(Functional Interface)是Java 8对一类特殊类型的接口的称呼。 这类接口只定义了唯一的抽象方法的接口,并且这类接口使用了@FunctionalInterface进行注解。在jdk8中,引入了一个新的包java.util.function, 可以使java 8 的函数式编程变得更加简便。这个package中的接口大致分为了以下四类:Function: 接收参数,并返回结果,主要方法 R apply(T t)Cons原创 2021-03-25 19:03:33 · 187 阅读 · 1 评论 -
docker the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winp
docker the input device is not a TTY. If you are using mintty, try prefixing the command with 'winp 解决方法执行命令报错docker exec -it 8ea8a375e686 /bin/bashthe input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'解决方案原创 2020-09-16 17:12:56 · 3254 阅读 · 1 评论 -
win怎么查看jdk堆内存
这里写自定义目录标题win怎么查看jdk堆内存找到jconsole.exe选择对应项目具体内存情况win怎么查看jdk堆内存有时候我们想查看内存情况,win系统可以通过jconsole.exe来实现找到jconsole.exe在jdk安装目录下bin下选择对应项目具体内存情况...原创 2020-06-19 10:32:16 · 523 阅读 · 0 评论 -
spring boot 集合MyBatis-Plus 生成代码
spring boot 集合MyBatis-Plus 生成代码项目添加依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.1.1</versio...原创 2020-04-20 19:50:17 · 435 阅读 · 0 评论 -
springboot策略模式登录小demo
springboot策略模式登录小demo策略模式在策略模式(Strategy Pattern)中,一个类的行为或其算法可以在运行时更改。这种类型的设计模式属于行为型模式。在策略模式中,我们创建表示各种策略的对象和一个行为随着策略对象改变而改变的 context 对象。策略对象改变 context 对象的执行算法。场景多种第三方登录登录接口话不多说,直接上代码登录验证接口和实现方法...原创 2020-04-18 11:36:42 · 349 阅读 · 0 评论 -
mysql LocalDateTime 时间类型查询遇到的坑
不知道大家会遇到这种问题没,查询语句如下SELECT*FROM table1WHERE deleted = 0AND start_time >= '2020-04-12T23:59:59.999999998'AND end_time <= ' 2020-04-19T23:59:59.999999998'结果:![在这里插入图片描述](https://img-blo...原创 2020-04-17 17:34:45 · 4295 阅读 · 1 评论 -
spring boot使用 ConstraintValidator 实现接口枚举校验
使用 ConstraintValidator 实现接口枚举校验自定义一个注解类@Target({ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE})@Retention(RetentionPolicy.RUNTIME)@Constraint(validatedBy = {EnumValidator.clas...原创 2020-04-16 16:36:55 · 1673 阅读 · 0 评论