# Day 6: User Service (Java)

* **Learn**: Spring Boot basics, REST APIs.
* **Task**: Create a Spring Boot app with a /users endpoint returning "Hello User." Commit to user branch

Object :  Create a simple User Service using Java and Spring Boot, run it locally, and commit it to your GitHub repo

Daily tasks :&#x20;

1. updated jira dashboard
2. installed java in the system
3. Installed Maven in the system
4. Tested our application and got below output

To initialize spring boot project

`mvn archetype:generate \`\
`-DgroupId=com.ecomm \`\
`-DartifactId=user-service \`\
`-DarchetypeArtifactId=maven-archetype-quickstart \`\
`-DinteractiveMode=false`

```
mvn package
java -jar target/user-service-1.0-SNAPSHOT.jar
```

`curl http://localhost:8080/users`

<figure><img src="/files/y4mXcd7FVEkFXOpxXmcA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://charan-techjourney.gitbook.io/charan-techjournal/50-days-of-devops-ecommerce-microservices/project-daily-tasks/day-6-user-service-java.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
