In this tutorial, we’re going to consider the usage of the Maven WAR plugin with a Java EE application.
Search Results for: compilation
Java Weekly, Issue 406
ZGC is even better in Java 17, faster Maven builds, BGP and Facebook, pattern matching future, and economy of code ownership!
Maven dependencyManagement vs. dependencies Tags
Learn the similarities and differences of Maven’s dependencyManagement and dependencies tags
Fixing the “Declared package does not match the expected package” Error
If the package name of a java file does not match its location on the file system, we’ll get an error. We look at a few common causes for this and how to fix it.
Java Annotation Attribute Value Restrictions
Learn some reasons for this limitation and look under the hood of the JVM to explain it better
Java Weekly, Issue 397
Project Loom vs Reactive Programming, GraalVM improvements, Spring Data Projections, feature parity pattern, and a new K8S release!
Why Missing Annotations Don’t Cause ClassNotFoundException
Learn why missing annotations won’t cause any exceptions at runtime
Additional Source Directories in Maven
Learn how to configure additional source directories in Maven.
Native Images with Spring Boot and GraalVM
Learn how to use Spring Native to compile and build native images using Buildpacks and GraalVM’s native build tools
Logical vs Bitwise OR Operator
Java supports two variations of OR with different operator precedence and runtime behaviour. We explore how logical OR short-circuits and how bitwise OR applies to numbers and boolean values.
Java Weekly, Issue 384
Superior Java records, Kotlin 1.5, code examples in Javadoc, stream collector, Spring Cloud Gateway meets K8S, indexing JSON columns, and COIVD predictions!
What Are Compile-Time Constants in Java?
The Java compiler is able to pre-calculate certain values for us at compile time. This allows us to use some variables with expressions that must be constant, and leads to some runtime efficiencies.
JVM Storage for Static Members
Learn about JVM storage for the static methods and members
Convert an Array of Primitives to an Array of Objects
Learn to convert an array of primitives to an array of objects.
Advise Methods on Annotated Classes With AspectJ
Learn how to write trace logging output when calling methods of configured classes using AspectJ.
Java Weekly, Issue 382
Spring Data improvements, more from project Panama, delegation in Kotlin, deprecating security manager, clustered indices, and indexed jobs in K8S!
Java Weekly, Issue 381
A busy week for the Spring team, new JMC version, Microsoft loves OpenJDK, CronJobs on K8S, and introducing weakness-oriented hiring!
The Java final Keyword – Impact on Performance
Explore if there are any performance benefits from using the final keyword on a variable, method, and class
How to Use Visual Studio Code With Java?
Learn how to get up-and-running with Visual Studio Code support for Java.
Guide to Implementing the compareTo Method
Learn about how to implement the compareTo method using core Java.