---
title: "Ken Hu (@kenhu) | Hashnode"
description: "Software Developer and Product Manager. Read the latest articles by Ken Hu on Hashnode."
url: "https://hashnode.com/@kenhu"
---

@kenhu

# Ken Hu

@kenhu · Kaohsiung, Taiwan · Joined April 2020

Software Developer and Product Manager

### [Back to Slackware](https://kenhu.hashnode.dev/back-to-slackware?utm_source=hashnode&utm_medium=feed)

When I studied in college as a graduated student, the professor will help us to build a linux machine for running numerical computations. During that time, the so-called "Linux" generally means "Slackware". After that, I spend most of time in Debian,...

1 min read · [kenhu.hashnode.dev](https://kenhu.hashnode.dev/back-to-slackware?utm_source=hashnode&utm_medium=feed)

[Jun 14, 2022](https://hashnode.com/posts/back-to-slackware/62a83d7960eeb002ccef8015)

### [Batch rename files by shell](https://kenhu.hashnode.dev/batch-rename-files-by-shell?utm_source=hashnode&utm_medium=feed)

Today I have a lot of screenshot images need to be rename. Well , it seems to be an easy task, but the space characters inside file names cause a little trouble. If I define a bash function in command line directly, it works well: cnf(){ files=$(ls -...

1 min read · [kenhu.hashnode.dev](https://kenhu.hashnode.dev/batch-rename-files-by-shell?utm_source=hashnode&utm_medium=feed)

[Jun 12, 2021](https://hashnode.com/posts/batch-rename-files-by-shell/60c42fd51e145957d5af7ea0)

### [Spring RestTemplate treats Non-200 status as Exception](https://kenhu.hashnode.dev/spring-resttemplate-treats-non-200-status-as-exception?utm_source=hashnode&utm_medium=feed)

Recently I run into the following code snippets: ResponseEntity<ApmTopoResponse> response2 = null; try { response2 = restTemplate.exchange(topoUrl, HttpMethod.GET, request, ApmTopoResponse.class, 1); } catch (Exception e) { throw new CustomExcept...

4 min read · [kenhu.hashnode.dev](https://kenhu.hashnode.dev/spring-resttemplate-treats-non-200-status-as-exception?utm_source=hashnode&utm_medium=feed)

[Oct 21, 2020](https://hashnode.com/posts/spring-resttemplate-treats-non-200-status-as-exception/5f8fe50df5dd254fbf5fb184)

### [Spring Cloud Gateway Global Cors](https://kenhu.hashnode.dev/spring-cloud-gateway-global-cors?utm_source=hashnode&utm_medium=feed)

Recently I am working on a new project using spring cloud to build a microservices architecture application. Because the frontend (vue.js app) needs to talk to the backend rest services, so we need to enable cors headers at the api gateway. The offi...

[kenhu.hashnode.dev](https://kenhu.hashnode.dev/spring-cloud-gateway-global-cors?utm_source=hashnode&utm_medium=feed)

[May 4, 2020](https://hashnode.com/posts/spring-cloud-gateway-global-cors/5eb023f1352b69972eb684db)

### [Pure Junit 5 in maven module](https://kenhu.hashnode.dev/pure-junit-5-in-maven-module?utm_source=hashnode&utm_medium=feed)

Mixing junit 4 and junit 5 cause a little confusion, document says: If you are using JUnit 4, don’t forget to also add @RunWith(SpringRunner.class) to your test, otherwise the annotations will be ignored. If you are using JUnit 5, there’s no need to...

[kenhu.hashnode.dev](https://kenhu.hashnode.dev/pure-junit-5-in-maven-module?utm_source=hashnode&utm_medium=feed)

[Apr 11, 2020](https://hashnode.com/posts/pure-junit-5-in-maven-module/5e9190a4c492833a1752e547)
