https://kornkan.com/2024/07/19/what-is-spring-boot/
This Spring Boot application provides a simple REST API that returns a ready status message and the current date and time in a specific format. The application demonstrates the use of Spring Boot for creating a basic web service with endpoint mappings for handling requests.
- Ensure you have Java and Maven installed.
- Clone the repository.
- Navigate to the project directory:
- Build and run the application:
- Access the API at the following endpoints:
- Check the service status: http://localhost:8080/check
- Get the current date and time: http://localhost:8080/date
- The
/checkendpoint returns a simple message indicating that the Spring Boot application is ready. - The
/dateendpoint returns the current date and time formatted as "dd-MM-yyyy HH:mm:ss" based on the Asia/Bangkok timezone. - Ensure that you have the required dependencies specified in the
pom.xmlfile to successfully run the application.
This project was developed using Apache NetBeans IDE.