This repository contains a single Spring Boot Maven application in the demo/ folder. The project already has the standard package layout for a product-based CRUD app, with domain, repository, and service layers in place.
The application currently includes:
- a Spring Boot entry point
- a
ProductJPA entity - a
ProductRepositorybased on Spring Data JPA - a
ProductServiceinterface and service implementation - a test class for basic Spring context loading
The controller file exists, but it is currently empty, so the REST API surface is not implemented yet.
- Java 17 JDK
- Spring Boot 4.0.3
- Spring Web
- Spring Data JPA
- Maven Wrapper
flowchart TB
root["2526-11g-otj-AGGeorgiev22/"] --> readme["README.md"]
root --> demo["demo/"]
root --> architecture["FILE_ARCHITECTURE.md"]
subgraph app["demo/ Maven + Spring Boot app"]
demo --> wrapper["mvnw\nmvnw.cmd"]
demo --> pom["pom.xml"]
demo --> src["src/"]
demo --> target["target/"]
src --> main["main/"]
src --> test["test/"]
main --> java["java/com/example/demo/"]
main --> resources["resources/"]
java --> appMain["DemoApplication.java"]
java --> controller["controller/ProductController.java"]
java --> model["model/Product.java"]
java --> repository["repository/ProductRepository.java"]
java --> service["service/ProductService.java\nservice/ProductServiceImpl.java"]
resources --> props["application.properties"]
test --> testJava["java/com/example/demo/"]
testJava --> tests["DemoApplicationTests.java"]
target --> classes["classes/"]
target --> testClasses["test-classes/"]
classes --> builtProps["application.properties"]
classes --> builtMain["com/example/demo/... compiled classes"]
testClasses --> builtTests["com/example/demo/... compiled tests"]
end
demo/src/main/java/com/example/democontains the application source code.demo/src/main/resourcescontains runtime configuration.demo/src/test/java/com/example/democontains tests.demo/targetcontains generated Maven build output.
The repository is structured like a layered Spring Boot application, but it is not yet a complete end-to-end CRUD app.
ProductController.javaexists but does not currently define endpoints.application.propertiesonly sets the application name.pom.xmlincludes JPA support, but the project does not currently declare a database driver.
From the demo/ directory you can use the Maven wrapper:
.\mvnw.cmd testThis requires a Java 17 JDK. A plain JRE is not enough because Maven needs the Java compiler.
If you want to run the application as a real database-backed API, the next missing pieces are:
- add a database driver dependency
- configure a datasource in
application.properties - implement REST endpoints in
ProductController.java