- 可乐哇
码龄6年
求更新 关注
提问 私信
  • 博客:60,070
    60,070
    总访问量
  • 29
    原创
  • 10
    粉丝
  • 38
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:安徽省
加入CSDN时间: 2020-06-02

个人简介:看不见的都在努力

博客简介:

weixin_48314739的博客

查看详细资料
个人成就
  • 获得43次点赞
  • 内容获得20次评论
  • 获得55次收藏
  • 代码片获得199次分享
  • 博客总排名466,208名
创作历程
  • 10篇
    2021年
  • 19篇
    2020年
成就勋章
TA的专栏
  • Java
    18篇
  • maven
  • Docker
    4篇
  • Webservice
    2篇
  • Nginx
    1篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 2

TA参与的活动 0

兴趣领域 设置
  • 大数据
    mysqlredis
  • 后端
    spring架构
  • 搜索
    elasticsearch
  • 服务器
    linux
创作活动更多

AtomGit「码动四季·开源同行」秋季征稿活动

秋季征稿主题:开源成果经验分享 成果不止一种形态,我们为你准备了六大赛道,总有一款适合你: 开源项目成果复盘 把项目一年/一季的成长摊开来看:里程碑复盘、Star 与用户增长复盘、版本迭代复盘、从 0 到 1 的发布复盘。 🖊️ 示范选题: ●开源项目从 0 到 1000 Star,我做对了什么 ●开源一周年,我交出的成绩单 这类文章不只是一次经验分享,也是一张项目名片。欢迎将项目托管到 AtomGit 并申请成为 G-Star 项目,通过后可获得平台流量推荐、项目宣传等权益。(G-Star:AtomGit 最具影响力开源项目) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/1f90c61528ad410d8d66f9d0e3707a5a.png) 咨询 G-Star 项目申请 2️⃣ 技术经验体系化沉淀 踩坑合集、最佳实践总结、工具链实战、CI/CD 流水线搭建、代码重构与架构演进。 🖊️ 示范选题: ●提了 50 个 PR 后,我总结的开源协作避坑清单 ●一次重大重构复盘:把单体拆成可维护的模块 3️⃣ AI 赋能开源的实战成果 AI 编程助手实战测评、基于开源模型的微调与应用开发、AI 辅助研发提效流水线。 🖊️ 示范选题: ●我用 AI 编程助手把提 PR 效率翻了 3 倍 ●基于开源大模型搭了个 XX 工具(附完整教程) 4️⃣ 开源共建笔记|文档、社区与布道 开源文档写作与翻译、issue 互助经验、组织 meetup、用开源项目做教学与分享。 🖊️ 示范选题: ●一个优秀开源项目,文档应该怎么写 ●我用开源项目做了个线上 Workshop ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/23e83ceebc594c379f7fc6aa8dcfa40c.png) 扫码加入码动四季投稿交流群,和更多伙伴一起交流技术!

291人参与 去参加
  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

拦截器返回认证失败提示信息

/** * @author 方延杰 * @version 1.0 * @since 2019/11/16 5:35 下午 */ @Slf4j public class AuthIntercepter implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) th
原创
博文更新于 2022.04.10 ·
3064 阅读 ·
2 点赞 ·
0 评论 ·
2 收藏

Java后端优雅验证参数合法性

package com.clickpaas.pojo; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Range; import javax.validation.constraints.*; import java.ma
原创
博文更新于 2021.10.26 ·
2671 阅读 ·
3 点赞 ·
0 评论 ·
4 收藏

Java使用JDK自带工具从wsdl生成代码

wsimport -s 输出路径 公网wsdl或本地wsdl路径
原创
博文更新于 2021.08.24 ·
388 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Spring获取注入Bean

package com.clicks.config; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; /** * @author
原创
博文更新于 2021.08.05 ·
972 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Springboot项目部署tomcat

package com.clickpaas; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.su
原创
博文更新于 2021.07.07 ·
250 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Dockerfile部署boot项目发布上线

一、先初始化简单web程序,返回ok 二、创建Dockerfile,在根目录,可以参考上图根目录的位置,内容如下 # 基础镜像 FROM java #维护者信息 MAINTAINER yanjie #工作目录 WORKDIR / # 复制jar到/根目录 ADD target/*.jar app.jar # 设置时区 RUN echo "Asia/Shanghai" > /etc/timezone #为了缩短 Tomcat 的启动时间,添加java.security.egd的系统属性指
原创
博文更新于 2021.04.06 ·
229 阅读 ·
2 点赞 ·
1 评论 ·
1 收藏

Gradle配置设置了账户密码的远程仓库

repositories { maven { url '远程仓库地址' credentials { username 'xxx' password 'xxx' } } }
原创
博文更新于 2021.03.31 ·
2669 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

IK 中文分词

一、导入依赖 <dependency> <groupId>com.jianggujin</groupId> <artifactId>IKAnalyzer-lucene</artifactId> <version>8.0.0</version> </dependency> 二、开始分词 @Test void contentBlock() throws IO
原创
博文更新于 2021.03.30 ·
196 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

java8操作map根据value分组

public static void main(String[] args) { Map<String, Integer> res = new LinkedHashMap<>(); res.put("你", 1); res.put("好", 1); res.put("中", 2); res.put("国", 2); Map<Integer, List<Map.Entry&l.
原创
博文更新于 2021.03.30 ·
3103 阅读 ·
1 点赞 ·
0 评论 ·
5 收藏

java获取俩个日期间隔天数

public static void main(String[] args) { String start = "2021-01-20"; String end = "2021-02-01"; LocalDate parseStart = LocalDate.parse(start); LocalDate parseEnd = LocalDate.parse(end); //相隔天数 long days = p
原创
博文更新于 2021.02.19 ·
552 阅读 ·
2 点赞 ·
0 评论 ·
3 收藏

Maven打包时获取当前日期时间

以下两种方式均可实现 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin>
原创
博文更新于 2021.01.13 ·
2379 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

Java中日期时间转时间戳

package com.clicks.util; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; /** @author 方延杰 @version 1.0 @since 2021/1/3 10:06 下午 / public class DateUtils { /* 时间转时间戳 @param time 2020-10-14 10:00:12 @retu
原创
博文更新于 2021.01.07 ·
878 阅读 ·
1 点赞 ·
1 评论 ·
1 收藏

Java中Number转为百分比

public static String numberToPercentage(Object number) { NumberFormat format = NumberFormat.getPercentInstance(); //小数最大保留2位 format.setMaximumFractionDigits(2); return format.format(number); }
原创
博文更新于 2021.01.07 ·
2334 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

SpringBoot 2.4.0版本后解决跨域问题

package com.clickpaas.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.UrlBasedCorsConfigura
原创
博文更新于 2020.12.15 ·
6100 阅读 ·
8 点赞 ·
11 评论 ·
20 收藏

swagger-ui添加拦截器后不能访问

1、在拦截器中排除swagger-ui,并重写addResourceHandlers内容如下: package com.clickpaas; import com.clickpaas.config.AuthIntercepter; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springf
原创
博文更新于 2020.12.23 ·
749 阅读 ·
2 点赞 ·
0 评论 ·
1 收藏

SpringBoot启动加载不到静态资源

需要在yml中添加静态资源的路径即可解决 spring: thymeleaf: cache: false mvc: static-path-pattern: /static/** resources: static-locations: classpath:/static/
原创
博文更新于 2020.12.18 ·
1353 阅读 ·
3 点赞 ·
2 评论 ·
2 收藏

解决使用静态Jar包后打包失败的问题

pom.xml中添加: <dependency> <groupId>根据反编译后的Jar的META-INF下的pom.xml中添加</groupId> <artifactId>同上</artifactId> <version>同上</version> <scope>system</scope> <systemPath>${pom.basedir}/s
原创
博文更新于 2020.12.11 ·
1440 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

List中属性以指定字符分隔并转成字段串

第一种: List<String> list= Arrays.asList("a", "b", "c", "d"); String str= String.join(",", list); System.out.println(str); // str = "a,b,c,d; 第二种: List<String> list= Arrays.asList("a", "b", "c", "d"); String str= list.stream().collect(Collector
原创
博文更新于 2020.12.09 ·
2980 阅读 ·
2 点赞 ·
0 评论 ·
2 收藏

List使用迭代器进行边操作边删除

public static void main(String[] args) { //list=[1, 2, 3, 4, 5 ,6, 7, 8, 9, 10] List<String> list = Stream.iterate(1, item -> item + 1).limit(10) .map(Object::toString) .collect(Collectors.toList()); //过滤条件
原创
博文更新于 2020.12.09 ·
2135 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

Docker基础命令使用

1、查看正在运行容器 docker ps 2、查看所有容器 docker ps -a 3、进入运行容器内部 docker exec -it 容器id /bin/bash
原创
博文更新于 2020.12.09 ·
1749 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多