Difference between revisions of "Java: Spring"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
m
Tag: visualeditor
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
[https://github.com/in28minutes/java-a-course-for-beginners/blob/master/51-learn-spring-framework/5.md#srcmainjavacomin28minuteslearnspringframeworksampleenterpriseflowwebcontrollerjava Code example]
 
[https://github.com/in28minutes/java-a-course-for-beginners/blob/master/51-learn-spring-framework/5.md#srcmainjavacomin28minuteslearnspringframeworksampleenterpriseflowwebcontrollerjava Code example]
  
=== application.properties ===
+
===application.properties===
 
<syntaxhighlight lang="java">
 
<syntaxhighlight lang="java">
 
logging.level.org.springframework=DEBUG
 
logging.level.org.springframework=DEBUG
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== pom.xml (Dependencies) ===
+
===pom.xml (Dependencies)===
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
....
 
....
Line 22: Line 22:
 
     </dependencies>
 
     </dependencies>
 
....
 
....
</syntaxhighlight><br />
+
</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