• The Problem With Annotation Processors

    Updated: 2021-03-26 22:26:59
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone The Problem With Annotation Processors The Problem With Annotation Processors The problem lies squarely with the unavailability of the environment outside the compiler . Without its environment , testing an annotation processor is a lost . cause by Matthias Ngeo Mar . 26, 21 Java Zone Presentation Like 1 Comment Save Tweet 677 Views Join the DZone community and get the full member . experience Join For Free For reasons unknown , broaching

  • Singleton Design Pattern

    Updated: 2021-03-26 22:22:58
    Design patterns are important as they help us solve general problems with software that people face during development. These patterns help us make code maintainable, extensible, and loosely coupled. One such design pattern is the Singleton Design pattern. In simple terms, Singleton is a class that allows us only to create a single instance of it. It makes it impossible for us to instantiate the class for the second time.

  • How to Convert PDF to Text in Java

    Updated: 2021-03-26 21:59:40
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone How to Convert PDF to Text in Java How to Convert PDF to Text in Java Utilize OCR technology to convert a PDF to text using an API in . Java by Laura Bouchard CORE Mar . 26, 21 Java Zone Tutorial Like 1 Comment Save Tweet 400 Views Join the DZone community and get the full member . experience Join For Free Without the ability to copy , paste , or edit within a PDF document , it can be a frustrating task to manually transcribe a PDF to text .

  • 3 New Java Tools to Try in 2021

    Updated: 2021-03-25 15:38:30
    Despite the popularity of Python, Go, and Node.js for implementing artificial intelligence and machine learning applications and serverless functions on Kubernetes, Java technologies still play a key role in developing enterprise applications. According to Developer Economics, in Q3 2020, there were 8 million enterprise Java developers worldwide. Although the programming language has been around for more than 25 years, there are always new trends, tools, and frameworks in the Java world that can empower your applications and your career.

  • Distributed Lock Implementation With Redis

    Updated: 2021-03-25 01:34:34
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone Distributed Lock Implementation With Redis Distributed Lock Implementation With Redis Many libraries use Redis for distributed locking , but some of these good libraries haven't considered all of the pitfalls that may arise in a distributed . environment by Javad Alimohammadi Mar . 25, 21 Java Zone Tutorial Like 2 Comment Save Tweet 779 Views Join the DZone community and get the full member . experience Join For Free Uses of Distributed

  • Project Reactor and Caching With Caffeine

    Updated: 2021-03-24 22:18:46
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone Project Reactor and Caching With Caffeine Project Reactor and Caching With Caffeine Learn how to get Reactor playing with . Caffeine by Biju Kunjummen Mar . 24, 21 Java Zone Tutorial Like 1 Comment Save Tweet 326 Views Join the DZone community and get the full member . experience Join For Free So you have a function that takes a key and returns a Project Reactor Mono type . nbsp Java x 1 Mono String get String key 2 Random random

  • Detect and Break “Spaghetti” Code With These 5 Useful Metrics

    Updated: 2021-03-24 17:44:08
    What Is “Spaghetti” Code? Spaghetti code refers to code that is difficult to read and maintain. This code has the following characteristics: an important nesting or dispersion of the logic (trade). a complex control structure. complex logic checks. a potentially abundant presence of comments. code that does several things at once (Single Responsibility Principle Violation). Fortunately, it can be easy to identify this type of code with a good tool.

  • API Authentication: What Is Basic Authentication?

    Updated: 2021-03-24 14:57:25
    In the video below, we take a closer look at the API Authentication: Basic Authentication | What is Basic Authentication? Let's get started!

  • Always Name Your Thread Pools

    Updated: 2021-03-24 00:46:24
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone Always Name Your Thread Pools Always Name Your Thread Pools Make life a little easier for the non-Spring . folk by Bozhidar Bozhanov Mar . 24, 21 Java Zone Tutorial Like 3 Comment Save Tweet 439 Views Join the DZone community and get the full member . experience Join For Free Our software tends to use a lot of thread pools – mostly through java.util.concurrent.ExecutorService implementations Created via Executors.new . We create these for

  • Hibernate Naming Strategies: JPA Specification vs Spring Boot Opinionation

    Updated: 2021-03-23 22:05:22
    Each time we inject a dependency into our project, we sign a contract, which often has lots of hidden things "written in the fine print". In this article, we will take a look at something you could miss when signing a tripartite contract between you, Hibernate, and Spring Boot. We will talk about naming strategies. Defaults in JPA Naming The ultimate rule about defaults: they must be intuitive. Let's check if this rule applies to a standard Spring Boot application with default configuration using Hibernate as a JPA implementation. Imagine you have an entity "PetType". Let's guess what table name in the database it is associated with.

  • How to Extract Sentences and Entities From a String in Java

    Updated: 2021-03-23 21:54:32
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone How to Extract Sentences and Entities From a String in Java How to Extract Sentences and Entities From a String in Java Perform sentence segmentation or extract entities from an input string using Natural Language Processing . APIs by Laura Bouchard CORE Mar . 23, 21 Java Zone Tutorial Like 1 Comment Save Tweet 306 Views Join the DZone community and get the full member . experience Join For Free In this article , we will be discussing more

  • Java Game Programming For Beginners: Where to Start

    Updated: 2021-03-23 20:01:05
    : Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone Java Game Programming For Beginners : Where to Start Java Game Programming For Beginners : Where to Start Java game programming is an industry in technology that is always growing . If you're wondering where to start in developing a game in Java , this is the article for . you by Kartik Prajapati Mar . 23, 21 Java Zone Tutorial Like 1 Comment Save Tweet 471 Views Join the DZone community and get the full member . experience Join For Free

  • Quickly Find Your Java Application Process ID

    Updated: 2021-03-23 18:54:37
    In this post, we are going to discuss how to find your Java application process ID quickly. For certain monitoring tools like yCrash, you need to pass your application process ID as input. Finding Java Application Process ID in Linux  n any Linux/Unix flavor of operating system, issue the command:

  • A Case Study: Dancing With the @Transactional Annotation in Exceptional Cases

    Updated: 2021-03-23 16:51:44
    Spring's @Transactional annotation is easy to use, but it may cause different types of errors if you don't know about the common pitfalls to look out for. In this article, I will show you the possible errors you can run into.  Suppose we write pseudocode like this: We have a service called DanceService.java and this service has a transactional method called letsDance. This code runs perfectly. What happens when we have an exception?

  • Authentication vs. Authorization: Session and JWT Token-Based Authentication

    Updated: 2021-03-23 16:17:58
    In the video below, we take a closer look at the Authentication vs. Authorization (Version 4) | Session and JWT Token-based Authentication. Let's get started!

  • The Data Access Layer in Jmix: JPA on Steroids

    Updated: 2021-03-22 23:36:52
    : Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone The Data Access Layer in Jmix : JPA on Steroids The Data Access Layer in Jmix : JPA on Steroids With Jmix JPA metadata , you get advanced security , soft delete and generic REST and GraphQL out-of-the-box almost without . coding by Andrey Belyaev CORE Mar . 22, 21 Java Zone Review Like 1 Comment Save Tweet 317 Views Join the DZone community and get the full member . experience Join For Free Introduction The data model is one of the

  • 67 New Features in JDK 16

    Updated: 2021-03-22 22:24:21
    Java Zone Thanks for visiting DZone , today Edit Profile Manage Email Subscriptions How to Post to DZone Sign Out View Profile Post Over 2 million developers have joined . DZone Log In Join Refcardz Research Webinars Zones Agile AI Big Data Cloud Database DevOps Integration IoT Java Microservices Open Source Performance Security Web Dev DZone Java Zone 67 New Features in JDK 16 67 New Features in JDK 16 Explore what Java 16 has to . offer by Simon Ritter Mar . 22, 21 Java Zone Tutorial Like 1 Comment Save Tweet 226 Views Join the DZone community and get the full member . experience Join For Free How time flies Even in these extraordinary times , it seems hard to believe another six months have passed , and we now have a new release of the JDK . As usual , I will summarise all the new

  • JBoss Deployment War Error on Startup

    Updated: 2021-03-22 16:45:12
    JBoss Server Not Starting In this post, we are going to discuss the deployment problem that prevents JbossServer from starting properly. Error While Starting JBoss Server (in Domain Mode) The JbossServer logs in this case looks like below:

  • Getter Setter: To Use or Not to Use?

    Updated: 2021-03-22 16:10:14
    Java Getter Setter Why do we keep instance variables private? We don’t want other classes to depend on them. Moreover, it requires flexibility to change a variable’s type or implementation on a whim or an impulse. Why, then, do programmers automatically add getters and setters to their objects, exposing their private variables as if they were public? Accessor Methods Accessors (also known as getters and setters) are methods that let you read and write the value of an instance variable of an object.

Previous Months Items

Feb 2021