Java: Spring

From RHS Wiki
Jump to navigation Jump to search

Spring Initializr

Spring default port 8080

Code example

application.properties

logging.level.org.springframework=DEBUG

pom.xml (Dependencies)

....
    <dependencies>
        ....
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        ....
    </dependencies>
....

Spring Modules

Core: IoC Container etc.

Testing: Mock Objects, Spring MVC Test, etc

Data Access: Transactions, JDBC, JPA etc

Web Servlet: Spring MVC etc

Web Reactive: Spring WebFlux etc

Integration: JMS etc

Spring Projects

Spring Boot: Microservices framework

Spring Cloud: Cloud native applications

Spring Data: Integrate the same way with different types of databases: NoSQL and Relational

Spring Integration: Integrate with other applications

Spring Security: Secure web application or REST API or microservice