Skip to content

NM-22: Initialize Spring Boot Maven project#6

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1779337581-nm22-spring-boot-init
Open

NM-22: Initialize Spring Boot Maven project#6
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1779337581-nm22-spring-boot-init

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Initializes a new Spring Boot 3.5.0 / Java 21 Maven project under eShopModernizedSpringSolution/ as the target for migrating the legacy .NET eShop application. This is the foundational scaffolding (Epic 0, Story 0.1) for the .NET Migration project.

Project structure:

  • pom.xml with spring-boot-starter-parent 3.5.0 and all required dependencies
  • EShopModernizedApplication.java — main entry point
  • SecurityConfig.java — Spring Security 6.x lambda DSL configuration
  • application.yml — SQL Server / Flyway / actuator configuration
  • application-dev.yml — H2 in-memory profile for local development
  • application-test.yml — H2 test profile
  • Maven wrapper (mvnw) pinned to 3.9.9
  • .gitignore updated for Maven/Java artifacts

Dependencies included:
spring-boot-starter-web, data-jpa, thymeleaf, thymeleaf-layout-dialect, validation, mssql-jdbc, flyway-sqlserver, actuator, security, spring-boot-starter-test, testcontainers:mssqlserver, H2

Verified:

  • mvn clean compile succeeds
  • App starts with dev profile and shows Whitelabel Error Page on http://localhost:8080
  • /actuator/health returns {"status":"UP"}

Whitelabel Error Page

Review & Testing Checklist for Human

  • Verify mvn clean compile succeeds in the eShopModernizedSpringSolution/ directory
  • Start with ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev and confirm Whitelabel page at http://localhost:8080
  • Confirm dependency list in pom.xml matches the ticket requirements

Notes

  • The dev profile uses H2 in-memory database so the app can start without SQL Server
  • Security is currently set to permitAll() for scaffolding; will be tightened in subsequent stories
  • Flyway is disabled in dev/test profiles since there are no migration scripts yet
  • Jira ticket: https://cognition-partner-workshops.atlassian.net/browse/NM-22

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/fb8e666994d349309b12b913a523358f

- Spring Boot 3.5.0 with Java 21
- Dependencies: web, data-jpa, thymeleaf, thymeleaf-layout-dialect,
  validation, mssql-jdbc, flyway-sqlserver, actuator, security
- Test deps: spring-boot-starter-test, testcontainers mssqlserver, H2
- Maven wrapper (3.9.9) for reproducible builds
- Dev profile with H2 in-memory database
- Test profile with H2 for unit/integration tests
- SecurityConfig with Spring Security 6.x lambda DSL
- Application YML with Flyway, JPA, and actuator configuration
- .gitignore updated for Maven/Java artifacts
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants