- 75
- 3 975
Arvind Rai (concretepage.com)
Приєднався 7 бер 2013
Learn programming languages and its advance concepts. Here we publish videos on front-end and back-end technologies such as Java, Spring, Angular, Hibernate and Android.
To read the articles, visit our website.
www.concretepage.com
To read the articles, visit our website.
www.concretepage.com
@Resource Annotation in Spring
Read here: www.concretepage.com/spring/resource-spring
The @Resource annotation is JSR-250 jakarta.annotation.Resource API. The @Resource annotation is used to declare a reference to a resource. The @Resource annotation resolves dependency injection. We can use it in place of @Autowired annotation.
The @Resource annotation is JSR-250 jakarta.annotation.Resource API. The @Resource annotation is used to declare a reference to a resource. The @Resource annotation resolves dependency injection. We can use it in place of @Autowired annotation.
Переглядів: 5
Відео
Spring Expression Language (SpEL) with @Value
Переглядів 1021 годину тому
Read here: www.concretepage.com/spring/spring-expression-language-example Spring Expression Language is passed in #{ expression-string } format in both cases, annotation configuration as well as XML configuration.
registerShutdownHook() and close() in Spring Boot
Переглядів 62 години тому
Read here: www.concretepage.com/spring/registershutdownhook_spring registerShutdownHook() and close() are methods of Spring ConfigurableWebApplicationContext class. registerShutdownHook() method registers a shutdown hook named SpringContextShutdownHook with the JVM runtime. close() method will close application context at the time it is invoked destroying all beans in its bean factory.
Spring @Transactional Annotation
Переглядів 112 години тому
Read here: www.concretepage.com/spring/spring-transactional To enable @Transactional annotation, use @EnableTransactionManagement in conjuction with @Configuration. If we are using XML configuration, then use tx:annotation-driven namespace.
Spring HibernateTemplate Example
Переглядів 377 годин тому
Read here: www.concretepage.com/spring/spring-hibernatetemplate Spring HibernateTemplate is a helper class that simplifies Hibernate data access code. It automatically converts HibernateExceptions into DataAccessExceptions.
Cannot invoke "java.util.Map.get(Object)" because "this.serverVariables" is null
Переглядів 137 годин тому
Link: www.concretepage.com/spring-boot/spring-boot-configure-mysql Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.serverVariables" is null
Scheduler in Spring Application with @EnableScheduling and @Scheduled
Переглядів 259 годин тому
Read here: www.concretepage.com/spring/example_enablescheduling_spring www.concretepage.com/spring/spring-scheduled-annotation
Spring @EnableCaching Annotation
Переглядів 79 годин тому
Read here: www.concretepage.com/spring/example_enablecaching_spring The @EnableCaching enables annotation-driven cache management capability. The @EnableCaching is used with @Configuration classes. The @EnableCaching invokes @CacheResult, @CachePut, @CacheRemove, @CacheRemoveAll annotations.
Spring @PropertySource Annotation
Переглядів 712 годин тому
Read here: www.concretepage.com/spring/spring-propertysource-annotation Using @PropertySource, we can load the entries of .properties file to Spring’s Environment. We can fetch values of .properties file using @Value and Environment .
Spring @CacheEvict Annotation
Переглядів 1712 годин тому
Read here: www.concretepage.com/spring/cacheevict_spring Spring @CacheEvict annotation is used to evict cache. The @CacheEvict is used at method level. The @Cacheable annotation sets the value in cache and on the contrary @CacheEvict evicts the cache
Spring @DependsOn Annotation
Переглядів 1812 годин тому
Read here: www.concretepage.com/spring/spring-dependson-annotation The @DependsOn annotation specifies the beans on which the current bean depends. All beans specified by the @DependsOn annotation are guaranteed to be created by container before this bean.
Spring @Primary Annotation
Переглядів 2214 годин тому
Read here: www.concretepage.com/spring/example_primary_spring @Primary annotation is used to make a bean preferable when multiple beans are qualified to autowire a single-valued dependency.
Spring @Lazy Annotation
Переглядів 1114 годин тому
Read here: www.concretepage.com/spring/spring-lazy-annotation Spring @Lazy annotation indicates that a bean will be lazily initialized. The @Lazy can be annotated with @Component, @Configuration or on methods annotated with @Bean.
Spring @Import Annotation
Переглядів 616 годин тому
Read here: www.concretepage.com/spring/example_import_spring Spring @Import annotation imports one or more @Configuration classes. The @Import annotation is equivalent to import element in Spring XML.
Using XML Configuration in Spring Boot with @ImportResource
Переглядів 1216 годин тому
Read here: www.concretepage.com/spring/example_importresource_spring Spring @ImportResource annotation imports the XML configurations in JavaConfig based applications. The class annotated with @Configuration can use @ImportResource annotation to load XML configurations.
How to Inject Null and Empty Values in Spring XML
Переглядів 721 годину тому
How to Inject Null and Empty Values in Spring XML
Inject List, Set, Map and Properties Collection in Spring XML
Переглядів 2621 годину тому
Inject List, Set, Map and Properties Collection in Spring XML
Inner Beans in Spring XML Configuration
Переглядів 1021 годину тому
Inner Beans in Spring XML Configuration