Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plopezgit/sprint4_t1_spring_introduction_maven
Spring introduction
https://github.com/plopezgit/sprint4_t1_spring_introduction_maven
api-rest http-requests maven spring spring-annotations spring-framework
Last synced: 27 days ago
JSON representation
Spring introduction
- Host: GitHub
- URL: https://github.com/plopezgit/sprint4_t1_spring_introduction_maven
- Owner: plopezgit
- Created: 2023-11-23T09:33:25.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-11-27T14:57:34.000Z (12 months ago)
- Last Synced: 2024-10-11T16:04:10.315Z (27 days ago)
- Topics: api-rest, http-requests, maven, spring, spring-annotations, spring-framework
- Language: Java
- Homepage: https://spring.io/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sprint4_T1_Spring_Introduction_Maven
Description:
This exercise introduces the SPRING framework.
You'll start using the HTTP protocol, using Postman, and discovering how to manage dependencies with Maven.Level 1:
- Spring and Maven exercise:
This exercise is a first contact with Spring and Maven.
Access the page: https://start.spring.io/, and generate a Spring boot project with the following characteristics:- [x] Import it into Eclipse using the option File > Import > Existing Maven Project.
- [x] In the application.properties file, set the server.port variable to the value 9000.We will turn this application into a REST API:
- [x] Depending on the main package, create another subpackage called Controllers, and inside it, add the HelloWorldController class. It must have two methods:
- [x] String hi
- [x] String hi2- [x] These two methods will receive a String parameter called name, and will return the phrase:
- “Hello, “ + name + “. You are running a Maven project”.- [x] The first method will respond to a GET request, and must be configured to receive the parameter as a RequestParam. The "name" parameter will have the default value "UNKNOWN". You will have to answer to:
- http://localhost:9000/HelloWorld
- http://localhost:9000/HelloWorld?name=My name- [x] The second method will respond to a GET request, and must be configured to receive the parameter as a PathVariable. The "name" parameter will be optional. You will have to answer to:
- http://localhost:9000/HelloWorld2
- http://localhost:9000/HelloWorld2/myname**Very important:**
In addition to the Git link for the solved assignment, you will need to include at least two different links to the resources we have provided you with on campus that have helped or could have helped you solve the entire assignment or some parts.