New article 📰: How to mock at️Value field in Spring Boot
https://www.geekyhacker.com/how-to-mock-at-value-field-in-spring-boot/
https://www.geekyhacker.com/how-to-mock-at-value-field-in-spring-boot/
Geeky Hacker
How to mock @Value field in Spring Boot
It's possible to mock the @Value in Spring Boot during both integration and unit testing using application.properties and ReflectionTestUtils.
New article 📰: Fix CloudWatch log resource policy failed: LimitExceededException
https://www.geekyhacker.com/fix-cloudwatch-log-resource-policy-failed-limitexceededexception/
https://www.geekyhacker.com/fix-cloudwatch-log-resource-policy-failed-limitexceededexception/
Geeky Hacker
Fix CloudWatch log resource policy failed: LimitExceededException - Geeky Hacker
CloudWatch log policy has some limitations which trigger failed LimitExceededException. To fix either policy or its document needs adjustment
High-performance data fetching using Spring Data JPA Stream
Java 8 has brought a number of functional goodies to the platform. One of the most useful features is Java Stream which is necessary for parallel processing in a simplified manner. Without that, I can only wish best of luck for someone using ExecutorService.
Like many other frameworks, Spring also started to utilize Java Stream…
https://www.geekyhacker.com/high-performance-data-fetching-using-spring-data-jpa-stream/
Java 8 has brought a number of functional goodies to the platform. One of the most useful features is Java Stream which is necessary for parallel processing in a simplified manner. Without that, I can only wish best of luck for someone using ExecutorService.
Like many other frameworks, Spring also started to utilize Java Stream…
https://www.geekyhacker.com/high-performance-data-fetching-using-spring-data-jpa-stream/
What is Accelerated Mobile Pages?
Two weeks ago, I’ve participated in a hackathon and the project I worked on was about AMP. While I was familiarizing myself with AMP concept to do the hacks, I took some notes which I think is worth sharing. Following is the fundamental of AMP.
Accelerated Mobile Pages (AMP), is an open-source project with a…
https://www.geekyhacker.com/what-is-accelerated-mobile-pages/
Two weeks ago, I’ve participated in a hackathon and the project I worked on was about AMP. While I was familiarizing myself with AMP concept to do the hacks, I took some notes which I think is worth sharing. Following is the fundamental of AMP.
Accelerated Mobile Pages (AMP), is an open-source project with a…
https://www.geekyhacker.com/what-is-accelerated-mobile-pages/
Execute commands as the root user on OpenBSD with doas
In Linux, when a user wants to execute a command as the root user, they use the sudo command. In the OpenBSD world, it is different since the system, by default, ships with the doas command, which essentially does the same thing as sudo: it allows users to execute commands as another (root) user.…
https://www.geekyhacker.com/execute-commands-as-the-root-user-on-openbsd-with-doas/
In Linux, when a user wants to execute a command as the root user, they use the sudo command. In the OpenBSD world, it is different since the system, by default, ships with the doas command, which essentially does the same thing as sudo: it allows users to execute commands as another (root) user.…
https://www.geekyhacker.com/execute-commands-as-the-root-user-on-openbsd-with-doas/
What is EnumMap in Java
EnumMap is a specialized implementation of the Map data structure in which the keys are enums. It’s particularly useful in scenarios where we want to retrieve a value corresponding to an enum constant. In this article, we’ll explore how to work with EnumMap and provide examples to aid understanding.
Let’s assume we want to implement…
https://www.geekyhacker.com/what-is-enummap-in-java/
EnumMap is a specialized implementation of the Map data structure in which the keys are enums. It’s particularly useful in scenarios where we want to retrieve a value corresponding to an enum constant. In this article, we’ll explore how to work with EnumMap and provide examples to aid understanding.
Let’s assume we want to implement…
https://www.geekyhacker.com/what-is-enummap-in-java/