Skip to content

Latest commit

 

History

History

spring-boot-starter-example-tomcat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Spring Boot 3.0 Jakarta example using the Spring Boot Starter Parent

In order to run this example you will need to have Java 17+ and Maven installed.

Before starting, check that your maven version is 3.0.x or above:

mvn -v
  1. Clone the repository, and go to the example folder

    git clone https://github.com/Moesif/moesif-servlet
    cd moesif-servlet/examples-jakarta/spring-boot-starter-example-tomcat
  2. Update MyConfig to use your own Moesif ApplicationId (Register for an account on moesif.com)

    vim src/main/java/com/moesif/servlet/spring/MyConfig.java
  3. Compile the example

    mvn clean install
  4. Run the sample

    mvn spring-boot:run
  5. Using Postman or CURL, make a few API calls to http://localhost:8080/api or the port that Spring Boot is running on.

  6. Verify the API calls are logged to your Moesif account