# pkslow-samples **Repository Path**: larrydpk/pkslow-samples ## Basic Information - **Project Name**: pkslow-samples - **Description**: samples for www.pkslow.com: Java, Spring Boot, Spring Cloud, Docker, Kubernetes, Cloud, Big Data - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2023-02-10 - **Last Updated**: 2025-02-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pkslow-samples - [GitHub](https://github.com/LarryDpk/pkslow-samples) - [Gitee](https://gitee.com/larrydpk/pkslow-samples) There articles and code samples on website www.pkslow.com. Mainly Topics: Java, Spring Boot, Spring Cloud, Docker, Kubernetes, Cloud, Big Data, Python pkslow.com Build Package: ```shell script mvn clean install ``` # 南瓜慢说 你终于来了! 欢迎来到**南瓜慢说**的世界。 南瓜慢说的个人网站为 www.pkslow.com ,寓意就是南瓜慢说(pumpkin slow). 该网站会记录我最新和最全的文章,部分文章会同步其它平台。 对应的GitHub仓库为:[pkslow-samples](https://github.com/LarryDpk/pkslow-samples),该仓库主要是个人技术文章和相关的代码示例。 主要涉及的内容有: - Java - Spring Boot - Spring Cloud - Docker - Kubernetes - Cloud - Big Data - Python - AI 可以通过以下命令构建项目: ```bash mvn clean install ``` 将坚持记录所思所想,希望带给自己成长的同时,能帮助到别人。 做一个简简单单的人, 做一个普普通通的人, 做一个不伤害社会的人, 做一个至少有一点点益处的人。
过好自己渺小的一生,而不至于虚无、后悔。 每一个不曾起舞的日子,都是对生命的辜负。 > 敢一行,则予知。脚踏实地,知行合一。
↥ back to top
# Spring Boot
↥ back to top
## GraalVM相关 [GraalVM和Spring Native尝鲜,一步步让Springboot启动飞起来,66ms完成启动](https://www.pkslow.com/archives/spring-boot-native-graalvm) - Code: [/spring-boot/spring-boot-native-graalvm](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-boot-native-graalvm) [Spring Native打包本地镜像,无需通过Graal的maven插件buildtools](https://www.pkslow.com/archives/spring-boot-native-without-buildtools) - Code: [/spring-boot/spring-boot-native-without-buildtools](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-boot-native-without-buildtools) [Quarkus入门体验,22ms启动一个Web服务](https://www.pkslow.com/archives/quarkus-quickstart) - Code: [/other/quarkus-quickstart](https://github.com/LarryDpk/pkslow-samples/tree/master/other/quarkus-quickstart)
↥ back to top
## 配置 [Spring自定义转换类,让@Value更方便](https://www.pkslow.com/archives/spring-custom-convert) - Code: [/spring-cloud/rest-service](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/rest-service) [使用SpringBootCondition更自由地定义条件化配置](https://www.pkslow.com/archives/springbootcondition) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common) [用ApplicationContextRunner测试配置类](https://www.pkslow.com/archives/test-config-class-with-applicationcontextrunner) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common) [Bean初始化操作initMethod、@PostConstruct和InitializingBean](https://www.pkslow.com/archives/bean-initializing) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common)
↥ back to top
## 监控 [用InfluxDB+Grafana监控Springboot应用](https://www.pkslow.com/archives/springboot-monitored-by-influxdb-grafana) - Code: [/spring-boot/springboot-influxdb](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-influxdb)
↥ back to top
## 数据操作 [Spring Data JPA的Audit功能,审计数据库的变更](https://www.pkslow.com/archives/spring-data-jpa-audit) - Code: [/spring-boot/spring-data-jpa-audit](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-data-jpa-audit)
↥ back to top
## Web开发 [Spring MVC获取HTTP请求头的两种方式](https://www.pkslow.com/archives/spring-mvc-get-headers) - Code: [/spring-boot/spring-data-jpa-audit](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-data-jpa-audit) [在Spring WebFlux的任何地方获取Request对象](https://www.pkslow.com/archives/spring-webflux-get-request) - Code: [/spring-cloud/webflux-service](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/webflux-service) [在Spring Boot中整合Katharsis,来快速开发JSON API的Web应用](https://www.pkslow.com/archives/springboot-katharsis) - Code: [/spring-boot/spring-boot-katharsis](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-boot-katharsis) [Spring在Filter中记录Web请求Request和返回Response的内容及时长](https://www.pkslow.com/archives/spring-log-request-response) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common)
↥ back to top
## Security [Springboot集成Spring Security实现JWT认证](https://www.pkslow.com/archives/springboot-spring-security-jwt-web) - Code: [/spring-boot/spring-security-jwt](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-security-jwt) [Springboot WebFlux集成Spring Security实现JWT认证](https://www.pkslow.com/archives/springboot-spring-security-jwt-webflux) - Code: [/spring-boot/spring-security-jwt-webflux](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-security-jwt-webflux)
↥ back to top
## Spring Batch [通过例子讲解Spring Batch入门,优秀的批处理框架](https://www.pkslow.com/archives/spring-batch-introduction) - Code: [/other/spring-batch/spring-batch-simple](https://github.com/LarryDpk/pkslow-samples/tree/master/other/spring-batch/spring-batch-simple) [Spring Batch远程分区的本地Jar包模式](https://www.pkslow.com/archives/spring-batch-remote-partition-local-jar) - Code: [/other/spring-batch/remote-partition-local](https://github.com/LarryDpk/pkslow-samples/tree/master/other/spring-batch/remote-partition-local)
↥ back to top
## 其它 [Spring Boot Actuator show the git and build info](https://www.pkslow.com/archives/springboot-actuator-git-build-info-en) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common) [Spring Boot通过Actuator显示git和build的信息](https://www.pkslow.com/archives/springboot-actuator-git-build-info) - Code: [/spring-boot/springboot-common](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-common) [Spring AOP与AspectJ的对比及应用](https://www.pkslow.com/archives/spring-aop-vs-aspectj) - Code: [/spring-boot/springboot-aspectj](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-aspectj) [Springboot整合AOP和注解,实现丰富的切面功能](https://www.pkslow.com/archives/springboot-aspectj-annotation) - Code: [/spring-boot/springboot-aspectj](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-aspectj) [Spring Boot Integration with Google Bard](https://www.pkslow.com/archives/spring-boot-google-bard) [Spring Boot整合Google Bard - Web接口访问Google AI聊天机器人](https://www.pkslow.com/archives/spring-boot-google-bard-cn) - Code: [spring-boot/spring-boot-google-bard](https://github.com/LarryDpk/pkslow-samples/blob/master/spring-boot/spring-boot-google-bard)
↥ back to top
# Spring Cloud
↥ back to top
## Spring Cloud Data Flow [Spring Cloud Data Flow整合UAA使用外置数据库和API接口](https://www.pkslow.com/archives/spring-cloud-dataflow-uaa-api) - Code: [/spring-cloud/cloudfoundry-uaa-server](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/cloudfoundry-uaa-server) [Spring Cloud Data Flow整合Cloudfoundry UAA服务做权限控制](https://www.pkslow.com/archives/spring-cloud-dataflow-uaa) - Code: [/spring-cloud/cloudfoundry-uaa-server](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/cloudfoundry-uaa-server) [Spring Cloud Data Flow整合UAA之使用LDAP进行账号管理](https://www.pkslow.com/archives/spring-cloud-dataflow-uaa-ldap) - Code: [/spring-cloud/ldap-server](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/ldap-server)
↥ back to top
## Spring Cloud Stream [整合Spring Cloud Stream Binder与RabbitMQ进行消息发送与接收](https://www.pkslow.com/archives/spring-cloud-stream-binder-rabbit) - Code: [/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-rabbit](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-rabbit) [整合Spring Cloud Stream Binder与Kafka进行消息发送与接收](https://www.pkslow.com/archives/spring-cloud-stream-binder-kafka) - Code: [/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-kafka](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-kafka)
↥ back to top
## 其它 [Spring Cloud Gateway简单入门,强大的微服务网关](https://www.pkslow.com/archives/spring-cloud-gateway-introduction) - Code: [/spring-cloud/spring-cloud-gateway](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-gateway) [Spring Cloud服务发现组件Eureka](https://www.pkslow.com/archives/spring-cloud-eureka) - Code: [/spring-cloud/spring-cloud-eureka](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-eureka) [Spring Cloud Service Discovery with Netflix Eureka](https://www.pkslow.com/archives/spring-cloud-eureka-en) - Code: [/spring-cloud/spring-cloud-eureka](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-eureka)
↥ back to top
# Docker [Docker启动PostgreSQL时创建多个数据库](https://www.pkslow.com/archives/docker-postgresql-multiple-databases) - Code: [/docker/postgresql-multiple-databases](https://github.com/LarryDpk/pkslow-samples/tree/master/docker/postgresql-multiple-databases) [通过Docker启动DB2,并在Spring Boot整合DB2](https://www.pkslow.com/archives/db2) - Code: [/spring-boot/spring-data-jpa-db2](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-data-jpa-db2) [通过Docker启动Solace,并在Spring Boot通过JMS整合Solace](https://www.pkslow.com/archives/solace) - Code: [/spring-boot/springboot-jms-solace](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/springboot-jms-solace)
↥ back to top
# Kubernetes [最好的Kubernetes客户端Java库fabric8io,快来自定义你的操作](https://www.pkslow.com/archives/kubernetes-client-fabric8io) - Code: [/kubernetes/kubernetes-client-fabric8io](https://github.com/LarryDpk/pkslow-samples/tree/master/kubernetes/kubernetes-client-fabric8io) [Kubernetes ConfigMap详解,多种方式创建、多种方式使用](https://www.pkslow.com/archives/kubernetes-configmap) - Code: [/kubernetes/configmap-springboot](https://github.com/LarryDpk/pkslow-samples/tree/master/kubernetes/configmap-springboot) [Kubernetes使用Keda进行弹性伸缩,更合理利用资源](https://www.pkslow.com/archives/keda) - Code: [/kubernetes/keda](https://github.com/LarryDpk/pkslow-samples/tree/master/kubernetes/keda) [Helm Template初体验,方便管理多环境](https://www.pkslow.com/archives/helm-template) - Code: [/cloud/helm](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/helm)
↥ back to top
# Cloud [K8ssandra入门-详细记录在Linux上部署K8ssandra到Kubernetes](https://www.pkslow.com/archives/k8ssandra) - Code: [/cloud/k8ssandra](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/k8ssandra) [使用Stargate访问K8ssandra,Springboot整合Cassandra](https://www.pkslow.com/archives/k8ssandra-stargatre) - Code: [/spring-boot/spring-data-cassandra](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-boot/spring-data-cassandra)
↥ back to top
## dapr [dapr本地托管的服务调用体验与Java SDK的Spring Boot整合](https://www.pkslow.com/archives/dapr-java-sdk-springboot) - Code: [/cloud/dapr/dapr-springboot](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/dapr/dapr-springboot)
↥ back to top
## Google Cloud Platform [整合Spring Cloud Stream Binder与GCP Pubsub进行消息发送与接收](https://www.pkslow.com/archives/spring-cloud-stream-binder-pubsub) - Code: [/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-pubsub](https://github.com/LarryDpk/pkslow-samples/tree/master/spring-cloud/spring-cloud-stream/spring-cloud-stream-binder-pubsub) [在GCP上创建Cloud SQL的三种方式(Console,gcloud,Terraform)](https://www.pkslow.com/archives/create-gcp-cloudsql) - Code: [/cloud/terraform/src/main/terraform/gcp/cloudsql](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/gcp/cloudsql) [Three ways to create Cloud SQL on GCP(Console,gcloud,Terraform)](https://www.pkslow.com/archives/create-gcp-cloudsql-en) - Code: [/cloud/terraform/src/main/terraform/gcp/cloudsql](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/gcp/cloudsql) [在GCP上创建GCE的三种方式(Console,gcloud,Terraform)](https://www.pkslow.com/archives/create-gcp-gce) - Code: [/cloud/terraform/src/main/terraform/gcp/gce](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/gcp/gce) [通过Terraform创建GCP Pubsub](https://www.pkslow.com/archives/terraform-gcp-pubsub) - Code: [/cloud/terraform/src/main/terraform/gcp/pubsub](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/gcp/pubsub)
↥ back to top
## 《Terraform 101 从入门到实践》 这部分内容在GitHub [terraform-101](https://github.com/LarryDpk/terraform-101): [《Terraform 101 从入门到实践》 前言](https://www.pkslow.com/archives/terraform-101-preface) [《Terraform 101 从入门到实践》 第一章 Terraform初相识](https://www.pkslow.com/archives/terraform-101-introduction) [《Terraform 101 从入门到实践》 第二章 Providers插件管理](https://www.pkslow.com/archives/terraform-101-providers) [《Terraform 101 从入门到实践》 第三章 Modules模块化](https://www.pkslow.com/archives/terraform-101-modules) [《Terraform 101 从入门到实践》 第四章 States状态管理](https://www.pkslow.com/archives/terraform-101-states) [《Terraform 101 从入门到实践》 第五章 HCL语法](https://www.pkslow.com/archives/terraform-101-hcl) [《Terraform 101 从入门到实践》 Terraform常用命令](https://www.pkslow.com/archives/terraform-101-commands) [《Terraform 101 从入门到实践》 Functions函数](https://www.pkslow.com/archives/terraform-101-functions)
↥ back to top
## Terraform [Terraform模块Module管理,聚合资源的抽取与复用](https://www.pkslow.com/archives/terraform-module) - Code: [/cloud/terraform/src/main/terraform/module-example](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/module-example) [Terraform入门教程,示例展示管理Docker和Kubernetes资源](https://www.pkslow.com/archives/terraform) - Code: [/cloud/terraform/src/main/terraform/docker](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/docker) - Code: [/cloud/terraform/src/main/terraform/kubernetes](https://github.com/LarryDpk/pkslow-samples/tree/master/cloud/terraform/src/main/terraform/kubernetes)
↥ back to top
# Java基础 [Protobuf入门与使用示例,高性能的序列化框架](https://www.pkslow.com/archives/protobuf-introduction) - Code: [/java-basic/protobuf](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/protobuf) [远程过程调用框架gRPC入门及Java示例代码](https://www.pkslow.com/archives/grpc-introduction) - Code: [/java-basic/grpc](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/grpc) [通过Maven用LiquiBase对数据库变更进行版本控制](https://www.pkslow.com/archives/liquibase) - Code: [/java-basic/liquibase](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/liquibase) [用pl.pojo.tester测试Pojo类,提高测试覆盖率](https://www.pkslow.com/archives/pl-pojo-tester) - Code: [/java-basic/pl-pojo-tester](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/pl-pojo-tester) [Java如何设置代理来访问受限资源](https://www.pkslow.com/archives/java-proxy) - Code: [/java-basic/java-proxy](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/java-proxy) [Apache Beam入门及Java SDK开发初体验](https://www.pkslow.com/archives/apache-beam) - Code: [/bigdata/apache-beam/direct-runner](https://github.com/LarryDpk/pkslow-samples/tree/master/bigdata/apache-beam/direct-runner) [Java如何测量方法执行时间](https://www.pkslow.com/archives/java-elapsed-time) - Code: [/java-basic/java-elapsed-time](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/java-elapsed-time) [Java JDK Proxy和CGLib动态代理示例讲解](https://www.pkslow.com/archives/jdk-cglib-proxy) - Code: [/java-basic/jdk-cglib-proxy](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/jdk-cglib-proxy) [Java多种方法实现等待所有子线程完成再继续执行](https://www.pkslow.com/archives/wait-for-threads-to-finish) - Code: [java-basic/wait-for-threads-to-finish](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/wait-for-threads-to-finish) [Java multiple ways to wait for threads to finish](https://www.pkslow.com/archives/wait-for-threads-to-finish-en) - Code: [java-basic/wait-for-threads-to-finish](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/wait-for-threads-to-finish) [Callable VS Runnable对比](https://www.pkslow.com/archives/runnable-vs-callable) - Code: [java-basic/runnable-vs-callable](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/runnable-vs-callable) [Difference Between Callable and Runnable in Java](https://www.pkslow.com/archives/runnable-vs-callable-en) - Code: [java-basic/runnable-vs-callable](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/runnable-vs-callable) [Multiple Ways to Download Files from Internet in Java](https://www.pkslow.com/archives/java-sava-a-file-from-internet) [Java从网上下载文件的几种方式](https://www.pkslow.com/archives/java-sava-a-file-from-internet-cn) - Code: [java-basic/download-file-from-internet](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/download-file-from-internet) [How to Install Zookeeper and Kafka Cluster](https://www.pkslow.com/archives/install-zookeeper-and-kafka-cluster) - Code: [other/install-kafka-cluster](https://github.com/LarryDpk/pkslow-samples/tree/master/other/install-kafka-cluster) [使用Thumbnailator生成缩略图(缩放、旋转、裁剪、水印)](https://www.pkslow.com/archives/java-thumbnailator) - Code: [java-basic/download-file-from-internet](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/java-thumbnailator)
↥ back to top
# Python [用Python做了一个广东疫情新增病例动态视频](https://www.pkslow.com/archives/python-covid-19-guangdong) - Code: [/python/src/main/python/covid-19-Guangdong](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/covid-19-Guangdong) [用Python库BeautifulSoup来读取广东疫情近期数据并存在csv上](https://www.pkslow.com/archives/python-bs4-csv) - Code: [/python/src/main/python/beautifulsoup4-example](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/beautifulsoup4-example) [用GPU来运行Python代码](https://www.pkslow.com/archives/run-python-with-gpu) - Code: [/python/src/main/python/cuda](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/cuda) [Use Python to Build a Google Bard Chatbot Client Locally](https://www.pkslow.com/archives/google-bard-python-chatbot) [用Python基于Google Bard做一个交互式的聊天机器人](https://www.pkslow.com/archives/google-bard-python-chatbot-cn) - Code: [python/google-bard-python-chatbot](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/google-bard-python-chatbot) [Google Cloud Platform Tutorial](https://www.pkslow.com/archives/gcp) - Code: [python/apache-beam](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/apache-beam) - Code: [python/spark](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/spark) - Code: [python/airflow](https://github.com/LarryDpk/pkslow-samples/tree/master/python/src/main/python/airflow)
↥ back to top
# 数据库 [How to partition the big table in PostgreSQL - Range List Hash](https://www.pkslow.com/archives/postgresql-partitioning-en) - Code: [/other/postgresql](https://github.com/LarryDpk/pkslow-samples/tree/master/other/postgresql) [示例讲解PostgreSQL表分区的三种方式](https://www.pkslow.com/archives/postgresql-partitioning) - Code: [/other/postgresql](https://github.com/LarryDpk/pkslow-samples/tree/master/other/postgresql) [InfluxDB入门及使用,一个优秀的时序数据库](https://www.pkslow.com/archives/influxdb-introduction) - Code: [/java-basic/influxdb](https://github.com/LarryDpk/pkslow-samples/tree/master/java-basic/influxdb)
↥ back to top
# 状态 ![Repobeats analytics](https://repobeats.axiom.co/api/embed/13cfae2492671e23cbc71c4f469e6c9c789769f7.svg "Repobeats analytics image")
↥ back to top
# Thanks to JetBrains

JetBrains

> Thanks JetBrains to support the project providing such great IDE.