Java

Hey Guys, For my current spring boot project I have been using a `@Scheduled` annotation and using **cron** syntax for running jobs, but now I don't want to schedule jobs on holiday (based on US calendar). So is there any approach to skip the schedule on holiday. Thanks for your help in advanced.

9
2
digma.ai

cross-posted from: https://programming.dev/post/19544005 > When managing a database, speed and efficiency are crucial. As applications handle more data and become more complex, the performance of database queries plays a big role in keeping everything running smoothly. One of the best ways to make queries faster is by using indexes. Similar to a book’s index that helps you quickly find a topic, database indexes allow you to find specific data without searching through the entire database. This article explains the basics of indexing, how it improves query performance, and some simple tips for using indexes effectively. Whether your database is small or large, understanding how to use indexes can help keep your application fast and responsive.

0
0

Hey guys, I'm pretty new to coding and I recently learnt java and now I have to learn spring boot but there are a lot of sources when searched and it's getting quite complicated. So is there any documentation which can help me learn spring boot. Also thank you for all the help.

9
2
https://youtu.be/h68WlAn_Vfg?t=434

Like you can see in the linked youtube video (forward to 7:14), he is using an older version of Launch4j and using "Only use private JDK runtimes" in the JRE tab to make sure the .exe file uses the JRE we bundled along with other necessary files. But the latest version I am using (3.5.0) does not have that option. ![](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fani.social%2Fpictrs%2Fimage%2Fed025d38-ca05-4350-97f2-246f1e0b2a47.webp) What is the alternative option for the newer versions of Launch4j?

7
0
digma.ai

cross-posted from: https://programming.dev/post/17309619 > In this article, we will explore the key differences between Ktor and Spring Boot for Kotlin developers based on the experience of various developers.

4
0

cross-posted from: https://programming.dev/post/15919674 > https://grafana.com/blog/2024/06/21/shorten-your-feedback-loop-java-observability-with-opentelemetry-grafana-cloud-and-digma.ai/

1
0
digma.ai

cross-posted from: https://programming.dev/post/15638499 > A list of major Java and JVM features since JDK 17 to 22, > > New language features > JEP-409: Sealed Classes (17) > JEP-440: Record patterns (21) > JEP-441: Pattern matching for switch (21) > JEP 456: Unnamed Variables & Patterns (22) > > API changes > JEP-306: Restore Always-Strict Floating-Point Semantics(17) > JEP-382: New macOS Rendering Pipeline(17) > JEP-400: UTF-8 by Default (18) > JDK-8301226 – Clamp method for java.lang.(Strict)Math (21) > JEP-439: Generational ZGC > JEP-444: Virtual threads (21) > JEP-454: Foreign Function & Memory(FFM) API (22) > > Security > JEP-452: Key Encapsulation Mechanism API (21) > JDK-8275252: keystore file > Features > JEP-408: Simple web server (18) > JEP-423: Region pinning for G1 (22) > JEP-458: multi-file source-code programs (22) > JEP-423: Region pinning for G1 (22) > JEP-458: multi-file source-code programs (22) > > Documentation > JEP-413: Javadoc code snippets (18) > > Deprecations > > Lookahead > Scoped values + Structured concurrency > Module import declarations

5
0

I teach a course in java and springboot for beginners. I would like to walk my students through the code of a real world java or springboot application. Can anyone recommend a good example?

15
7

https://lemm.ee/post/29785400 > So I'm making a project in SpringBoot with Oauth security. > > If I use Auth0 as my Authorization Server, I can register an application there and just say that I want user to be able to login with Google an Facebook. That's all it takes. > > If I use Keycloak as my Authorization Server, I can also have users choose Google or Facebook as there prefered login, but in order to provide that, I have to register my app with Google and Facebook first. > > So how come it's so easy with Auth0 and a little less easy with Keycloak? Is it a contract thing, does Auth0 have contracts with all these providers or something?

6
1
digma.ai

In this blog post, we will explore how to detect and prevent these anti-patterns using pair programming, code reviews, and observability.

-7
2
digma.ai

cross-posted from: https://programming.dev/post/11703178 > In this article, we’ll examine cache misses and, in general, learn about the caching concept and how to implement it in Spring Boot.

0
0
https://blogs.oracle.com/java/post/java-on-macos-14-4

“An issue introduced by macOS 14.4, which causes Java process to terminate unexpectedly, is affecting all Java versions from Java 8 to the early access builds of JDK 22. There is no workaround available, and since there is no easy way to revert a macOS update, affected users might be unable to return to a stable configuration unless they have a complete backup of their systems prior to the OS update.”

33
4
https://inside.java/2024/03/09/jfokus-modern-java-action/

Let's write a GitHub Crawler and let's throw in everything Java (21) has to offer: virtual threads and structured concurrency, pattern matching and data-oriented programming, type inference, records, and sealed types, text blocks and template strings, a modern HTTP client and improved collections, modules and OS-specific binaries. The end result will look very different from just a few years ago, let alone 10. This is not your dad's Java!

19
2
digma.ai

cross-posted from: https://programming.dev/post/10707322 > cross-posted from: https://programming.dev/post/10707319 > > > In this article, we want to share our experience with fellow developers and offer insights using real-life examples on how to identify and optimize slow SQL queries, especially when working with relational database management systems like PostgreSQL, MySQL, MSSQL, Oracle, etc.

4
0
https://stevecrox.github.io/maven-site-bootstrap-skin/

I find Maven sites look incredibly dated and I couldn't find a nice way to integrate other auto documentation tools such as MKDocs. So I've written a series of Apache Velocity templates which integrate Bootstrap, I've tried to respect Bootstrap components and the layout/structure of Apache projects (you'll find various configurations under 'layouts'). You can apply various bootstrap themes to it to improve it dramatically.

8
1
digma.ai

Things you can do right now to learn new and valuable things that can improve your code.

3
1