我们可以使用JSON Schema Validation代替Java Bean Validation JSR303 for Spring Boot Rest API for Enterprise Applications吗?在验证Spring Boot Rest API的请求有效负载时,哪种方法更有效?
(即性能方面的、交叉验证方面的和基于RegEx模式的验证)
我正在Spring中开发一个多模块项目,其中的项目结构如下:
com.app.parent <- parent pom with version numbers and common dependencies (POM)
com.app.core <- repository and service layer, models, DTOs (JAR)
com.app.rest <- rest API (WAR)
com.app.soap <- soap API (WAR)
用于父项目的文件是:
<artifactId>app-parent&
我知道通过内存身份验证,我们可以保护Spring boot rest API(它使用默认身份验证创建随机JWT令牌)。我的要求是我已经通过oracle rest服务创建了JWT令牌,使用这个令牌我需要保护我的spring boot rest api。我如何才能做到这一点?有什么需要帮忙的吗? 类似于下面的问题,Secure REST Api with Spring boot and JWT 向Raj致敬