Skip to content

musabbozkurt/oauth2-authorization-server

Repository files navigation

OAuth2 Authorization Server with Spring Boot 3 and Java 23

Prerequisites

  • Java 23 should be installed --> export JAVA_HOME=$(/usr/libexec/java_home -v 23)
  • Maven should be installed
  • Docker should be installed
  • Postman can be installed

How to Run and Test

Debugging Spring Boot Tests in IntelliJ IDEA

  • A quick guide on how to run Spring Boot tests in debug mode using IntelliJ IDEA's terminal.
  1. Run one of the below commands in the terminal
    • mvn test -Dmaven.surefire.debug
    • If port 5005 is already in use, you can specify a custom port
      • mvn test -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
  2. Open IntelliJ IDEA
  3. Go to Run > Attach to Process (or use shortcut)
    • Windows/Linux: Ctrl + Alt + 5
    • Mac: Cmd + Alt + 5
  4. Select the Java process running your tests
  5. The test will pause until you connect your debugger. Once connected, you can use breakpoints and step through your code.

References

Releases

No releases published

Packages

No packages published

Languages