Check other Spring short-notes For AOP example, use Eclipse IDE. Steps as below Create a maven project using linux maven (i.e. mvn) commands and then at one point import that project to Eclipse (mvn package command might help) Or Create a Java Project in Eclipse (if you start with a Java Project, you will need …
184 results for spring
Sep 15
Annotation Based Dependency Injection in Spring: Pretty Simple Java Code:
First, check the simple examples on creating Spring Applications One Simple Spring Application Pretty Simple Spring Application with Annotation Based Configurations Then use the following code MainApp.java package com.justetc; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.*; public class MainApp { public static void main(String[] args) { ApplicationContext ctx = new AnnotationConfigApplicationContext(TextEditorConfig.class); …
Sep 15
Pretty Simple Spring Application with Annotation Based Configurations
You can check the XML based configuration example at: http://sitestree.com/one-simple-spring-application/ [you can copy the code in Eclipse IDE and use the Source->Format option to properly format the code] For this example, Annotation based configuration will be used. i.e. we will create a .java for the Bean configuration. We will use @Configuration and @Bean annotations. The Main …
Sep 15
One Simple Spring Application
Did I try this on my own? Yes, I did. the code works. 1. Create a Java Project in Eclipse IDE named HelloSpring 2. Download Spring Framework and Commons Logging. Commons Logging: https://commons.apache.org/proper/commons-logging/download_logging.cgi Spring Framework: https://repo.spring.io/release/org/springframework/spring unzip these libraries. 3. Right click project name and select properties then go to Libraries tab 4. From …
Sep 04
PHP Technologies similar to Java Spring: Comparisons as Well
“Symfony2, introduced in 2011 after 2 years of active community development, took a lot of inspiration from Spring Framework, maybe the most popular Java framework out there.” https://ez.no/Blog/Why-PHP-and-Symfony-and-not-Java “We are often asked, especially from our enterprise customers at financial institutions, why we decided to go with PHP and Symfony instead of a Java framework. And …
Aug 01
Spring Boot Learning Resources
Your first “Hello World” Spring Application https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-first-application.html Maven Build life cycles to be used in the build process of maven based Spring-based-projects https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Spring Boot Repository: https://github.com/spring-projects/spring-boot Spring Bunch of Samples https://github.com/spring-projects/spring-boot/tree/v1.5.6.RELEASE/spring-boot-samples Spring: Getting Started Guides and Samples https://spring.io/guides/
Jul 28
Java Spring and AWS Cloud
Java Spring and AWS Cloud AWS Core: AWS native services from spring-cloud-aws AWS JDBC: Relational databases on AWS with RDS and spring-cloud-aws-jdbc AWS Messaging: Messaging on AWS with SQS and spring-cloud-aws-messaging
Jul 28
Java Spring and I/O
Java Spring and I/O Batch: Spring Batch including HSQLDB database Integration: Common spring-integration modules Quartz Scheduler: Schedule jobs using Quartz: requires Spring Boot >=2.0.0.M2 Activiti: Activiti BPMN workflow engine Apache Camel: Integration using Apache Camel JMS (ActiveMQ): Java Message Service API via Apache ActiveMQ JMS (Artemis): Java Message Service API via Apache Artemis JMS (HornetQ): …
Jul 28
Java Spring and NoSQL
Java Spring and NoSQL MongoDB: MongoDB NoSQL Database, including spring-data-mongodb Reactive MongoDB: MongoDB NoSQL Database, including spring-data-mongodb and the reactive driver: requires Spring Boot >=2.0.0.M1 Embedded MongoDB: Embedded MongoDB for testing Cassandra: Cassandra NoSQL Database, including spring-data-cassandra Reactive Cassandra: Cassandra NoSQL Database, including spring-data-cassandra and the reactive driver: requires Spring Boot …
Jul 28
Java Spring: Components to Deal with Database (SQL Aspect)
Java Spring: Components to Deal with Database (SQL Aspect) JPA: Java Persistence API including spring-data-jpa, spring-orm and Hibernate JOOQ: Persistence support using Java Object Oriented Querying MyBatis: Persistence support using MyBatis JDBC: JDBC databases H2: H2 database (with embedded support) HSQLDB: HSQLDB database (with embedded support) Apache Derby: Apache Derby database (with embedded support) MySQL: …