mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
add global exception handler for controllers
add new not found exception, add new test for ShopController
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.example.demo.responses
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue
|
||||
|
||||
enum class ResponseStatus(@JsonValue val status: String) {
|
||||
NOT_FOUND("not found");
|
||||
}
|
||||
Reference in New Issue
Block a user