- Java EE or Java, enterprise Edition is not available by default since Java 9.
- To access Java EE we need to include following library in Java 9
- javax.annotation-api
- Since @ Postconstruct and @Predestroy annotation Are parts of Java EE. We need to use following tag in our beans xml To enable all Java EE beans.
- <context:annotation-config />
- However, we may not require to enable all Java EE annotations in some cases Which is also a good programming practice.In such cases To enable only a single bean and it’s corresponding annotation we must declare that class as a bean Explicit in our xml file.
- For example to Enable @postconstruct and @predestroy annotations, we must Declare following bean explicitly
- <bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/>
- Annotations
- Controllers
- Components
- Dependencies
- Documenting Java Code
- Entities
- Hibernate
- HTTPS Security
- Spring Core
- Maven
- Spring MVC
- Microservices
- Packages
- Project Configuration
- REST Templates
- Spring Boot
- AOP
- Spring DI
- Spring IOC
- Spring Data
- Tag Library
- View Resolvers
- Validations,Errors & Exceptions
- Activiti Framework
- Deploy spring boot Microservices in Fargate
- Spring Security
- Password encryption using Jasypt
- Flyway DB Migration Script
- Session in Spring Boot
- Spring Expression Language
- Spring JDBC
- Spring ORM
- Testing Spring Boot
- Correlation ID
- Logging
- ELK Stack
- EFK Stack
- Swagger
- Rabbit MQ
- Circuit Breaker Pattern
- Connection Pooling
- Spring Batch
- Zipkins
- Kafka
- Spring Boot Actuator
- Spring Cloud
- Caching
- Gateway
- Service Discovery
Thursday, September 28, 2023
Enable Java EE Annotations, Java 9 onwards
Subscribe to:
Post Comments (Atom)
Spring Boot
What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...
-
What is JPA? JPA Is also called as Java persistence API It is a standard form oracle to map object to database relations. Provides specific...
-
Technology's / frameworks in Spring Spring core Spring MVC Spring boot Spring data Hibernate
-
Q What is the minimal web version required to use JSTL? And : 2.4 For example following tag from web.xml uses web 4.0 <web-app xmlns:xs...
No comments:
Post a Comment