Java Complete Reference Index
Select any item below to open its full syntax specification, parameters, and live example.
Jakarta EE
@ApplicationPath@ApplicationPath("/api")
Set the REST application base path. Jakarta EE 11; source-reviewed companion or illustrative file, NOT RUN.
@ApplicationScoped
Define a contextual bean with application lifetime. Jakarta EE 11; source-reviewed companion or illustrative file, NOT RUN.
@Inject@Inject CatalogService service;
Declare an injection point. Jakarta EE 11; source-reviewed companion or illustrative file, NOT RUN.
@JMSConnectionFactory@JMSConnectionFactory("java:comp/env/jms/CatalogFactory")
Select the connection factory for an injected JMSContext. Jakarta EE 11; source-reviewed companion or illustrative file, NOT RUN.
Spring Framework
@Bean@Bean Quote quote(Prices prices)
Register a factory method and allow its dependencies to be resolved by the container. Spring 7.0.9 instructional lab; source-reviewed, not executed.
@Configuration@Configuration(proxyBeanMethods = false)
Declare a Java configuration class; inter-bean dependencies can be expressed as factory parameters. Spring 7.0.9 instructional lab; source-reviewed, not executed.
@EnableTransactionManagement
Enable annotation-driven transaction management with an appropriate transaction manager. Spring 7.0.9 instructional lab; source-reviewed, not executed.
Caching and messaging
@CacheEvict@CacheEvict(cacheNames="catalog", key="#p0 + ':' + #p1")
Evict a key on successful method completion by default. Source-reviewed integration fragment or manual procedure, NOT RUN.
@Cacheable@Cacheable(cacheNames="catalog", key="#p0 + ':' + #p1", sync=true)
Reuse results through configured cache interception; sync support varies. Source-reviewed integration fragment or manual procedure, NOT RUN.
Spring Boot
@ConfigurationProperties@ConfigurationProperties("lab")
Bind external values grouped under a prefix to a registered typed object. Boot 4.0.10 companion project; source-reviewed, not executed.
@EnableConfigurationProperties@EnableConfigurationProperties(LabSettings.class)
Register a configuration properties type for binding. Boot 4.0.10 companion project; source-reviewed, not executed.
Spring Security
Jakarta Persistence / Spring Data JPA
@Entity
Mark a class as a persistent entity. Boot 4.0.10 companion project; source-reviewed, not executed.
@EntityGraph@EntityGraph(attributePaths="category")
Request related attributes as part of a repository fetch plan. Boot 4.0.10 companion project; source-reviewed, not executed.
@GeneratedValue@GeneratedValue(strategy=GenerationType.IDENTITY)
Request database identity generation in this mapping. Boot 4.0.10 companion project; source-reviewed, not executed.
@Id
Declare the entity primary key mapping. Boot 4.0.10 companion project; source-reviewed, not executed.
@JoinColumn@JoinColumn(name="category_id", nullable=false)
Identify a foreign-key column. Boot 4.0.10 companion project; source-reviewed, not executed.
Spring MVC / HTTP
@ExceptionHandler@ExceptionHandler(InventoryStore.Conflict.class)
Select an exception handler for known failures. Boot 4.0.10 companion project; source-reviewed, not executed.
@GetMapping@GetMapping("/{sku}")
Map an HTTP GET request to a handler. Boot 4.0.10 companion project; source-reviewed, not executed.
Language
Showing 20 of 831 entries