Your Information Source for Enterprise Application Development

DevX is the leading provider of technical information, tools, and services for professionals developing corporate applications.

Popular Posts:


Simplifying Null Check in Java

To avoid null exceptions, we usually validate against null and emptiness as shown: if(object != null && !object.equals(“”)) {} We

Automation of Tasks

Automation of tasks is a good concept. Consider the example below in which you create a task and schedule it


Extract Faces Using Amazon Rekognition

AmazonRekognitionClient amazonRekognitionClient = new AmazonRekognitionClient(Amazon.RegionEndpoint.);byte[] imageData = System.IO.File.ReadAllBytes(inputImageFile);DetectFacesRequest facesRequest =

All Articles

The rapid growth of the gig economy has produced massive changes in the way peer-to-peer enterprises around the world do business.

Tech Trends in the Gig Economy

As our modern world continues to evolve, the relationship between technology and business is adapting constantly. The rapid growth of the gig economy has produced massive changes in the way peer-to-peer enterprises around the world do business. Instead of hiring employees and contractors in a traditional manner, the gig economy

Read More »

Understanding FULLTEXT Searches

In MySQL, there is a provision to search based on natural mode. Let us consider the following example to understand this in detail. Creation of the table: CREATE TABLE ‘PROP_TBL’ ( ‘PROPERTY’ VARCHAR(100), ‘DOMAIN’ VARCHAR(20), ‘VALUE’ VARCHAR(2000), ‘PATH’ VARCHAR(100), PRIMARY KEY (‘PROPERTY’, ‘DOMAIN’, ‘PATH’), FULLTEXT (PROPERTY,DOMAIN))ENGINE=InnoDB; And use the following

Read More »

How to Use the Spring Example API

First, define a probe (an instance of the entity class): User user = new User();user.setName(“Ana”);user.setEmail(“[email protected]”); Next create a probe: Example userExample = Example.of(user); Next, define a repository that extends QueryByExampleExecutor interface: @Repository public interface UserRepository extends JpaRepository, QueryByExampleExecutor { } Finally, call one of the QueryByExampleExecutor methods (e.g., exists()): public

Read More »

How to log transactions details in Spring Boot

To log transactions details in a Spring Boot application simply add the following settings in logging.level.ROOT=INFO

Read More »

How to log HikariCP details in Spring Boot

To log HikariCP details simply add in the following settings:  If you need a deeper level of details then replace DEBUG with TRACE.

Read More »

Explore More Methods in the java.lang.Math Package

The java.lang.Math package is very powerful. Understand more methods in this package that are related to the Euler’s number named e. public class MathMethods{ public static void main(String args[]) { MathMethods mathMethods = new MathMethods(); mathMethods.proceed(); } private void proceed() { //The methid Math.exp returns e^x, where x is the argument

Read More »

Join Our Newsletter

Subscribe to receive our latest blog posts directly in your inbox!