Difference between revisions of "Java: Spring"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "[https://start.spring.io Spring Initializr] <br />")
Tag: visualeditor
 
m
Tag: visualeditor
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[https://start.spring.io Spring Initializr]
 
[https://start.spring.io Spring Initializr]
  
<br />
+
Spring default port 8080
 +
 
 +
[https://github.com/in28minutes/java-a-course-for-beginners/blob/master/51-learn-spring-framework/5.md#srcmainjavacomin28minuteslearnspringframeworksampleenterpriseflowwebcontrollerjava Code example]
 +
 
 +
===application.properties===
 +
<syntaxhighlight lang="java">
 +
logging.level.org.springframework=DEBUG
 +
</syntaxhighlight>
 +
 
 +
===pom.xml (Dependencies)===
 +
<syntaxhighlight lang="xml">
 +
....
 +
    <dependencies>
 +
        ....
 +
        <dependency>
 +
            <groupId>org.springframework.boot</groupId>
 +
            <artifactId>spring-boot-starter-web</artifactId>
 +
        </dependency>
 +
        ....
 +
    </dependencies>
 +
....
 +
</syntaxhighlight>
 +
 
 +
===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<br />
 +
 
 +
===Spring Projects===
 +
[[Java: Spring Boot|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
 +
[[Category:Java]]

Latest revision as of 13:01, 30 April 2022

Spring Initializr

Spring default port 8080

Code example

application.properties[edit]

logging.level.org.springframework=DEBUG

pom.xml (Dependencies)[edit]

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

Spring Modules[edit]

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[edit]

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