
Spring Constructor Injection vs Field Injection vs Setter
Compare constructor, setter and field injection in Spring on immutability, testing, circular dependencies and required versus optional collaborators.
Tag
99 posts

Compare constructor, setter and field injection in Spring on immutability, testing, circular dependencies and required versus optional collaborators.

Compare the Core Profile, Web Profile and full Platform of Jakarta EE, see which specifications each includes and choose the smallest one you need.

Understand JSF conversion and validation: converters, built in validators, Bean Validation, custom validators and messages, and why errors skip the model.

Where Vaadin fits badly: public sites, huge concurrency, offline apps and heavy custom UI. How to tell early, and what to choose in each case.

How Maven picks one version when libraries disagree, why nearest definition wins, how to see the conflicts and pin a version with dependencyManagement.

The four SQL isolation levels and the anomalies they allow, including phantom reads, how PostgreSQL and MySQL differ and how to set a level in Java.

Understand autoboxing in Java: primitives versus wrappers, the Integer cache, NullPointerException on unboxing, equality traps and memory cost.

The OWASP Top Ten web risks mapped to Java and Spring: what each one looks like in code, a fix for each and where to read the full guidance.

Learn Jakarta Bean Validation: built in constraints, validating objects and methods, groups, cascading, custom constraints and messages.

Use JSF AJAX with f:ajax: the execute and render attributes, event triggers, listeners, ids inside naming containers and common reasons nothing updates.

How Java constructors work: chaining with this and super, default constructors, the danger of calling overridable methods, final fields and records.

Compare Spring AOP and AspectJ: proxies versus weaving, supported join points, self invocation, performance, load time weaving and how to choose.