- Support passing and executing expression with help of @value annotation.
- To get a bean by id to set property type we can Use @value(“#{student}”).
- We can pass classes, variable methods, Constructors and objects in the expression.
- For example @value(“{expression}”)
- We can also use symbols like char, Numbers, operator , keywords And special symbols which turn our value
- @value(“#{3+5}”)
- @value(“#{8>6?88:55}”)
- We can call static methods, object, methods and variables.
- To invoke static method and variable. In spring expression, we use following methods.
- T(classname).method(Param)
- T(classname).variable
- For example if we want to invoke sqrt method of java.lang.math we will invoke as follows
- T(java.lang.math).sqrt(5).
- For Objects
- new Object(Value)
- For Boolean type with Spring Programming Expresson Language(SPEL)
- @value(“#{8>3}”)
- We need to place an expression which resolves in Boolean.
- 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
Spring Expression Language
Subscribe to:
Posts (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