Skip to content

One-Click-LCA/interview-template-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interview-template

Spring Boot sample project for the interview exercise.

Requirements

  • Java 21 (JDK). Verify with java -version.
  • Network access on first build. The project uses a Spring Boot snapshot parent (3.5.x-SNAPSHOT), so Maven must reach https://repo.spring.io/snapshot to resolve dependencies.

Optional:

  • Maven 3.9+ if you prefer mvn instead of the wrapper. Otherwise the included Maven Wrapper (mvnw / mvnw.cmd) is enough.

How to run the application

From the project root:

Linux / macOS / WSL

./mvnw spring-boot:run

If you see Permission denied on ./mvnw, either run chmod +x mvnw once or invoke the wrapper explicitly:

bash mvnw spring-boot:run

Windows (Command Prompt or PowerShell)

.\mvnw.cmd spring-boot:run

The app starts on the default Spring Boot port 8080 unless you override it (for example server.port=9090 in src/main/resources/application.properties or --server.port=9090 on the command line).

Try it

After startup, open or call:

http://localhost:8080/api/foo

You should get the plain text response ok.

Tests

./mvnw test

On Windows: .\mvnw.cmd test.

Build a runnable JAR

./mvnw package

Run the JAR:

java -jar target/inventory-0.0.1-SNAPSHOT.jar

About

Spring Boot sample project for the interview exercise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages