mybatis-jpa-extra

This commit is contained in:
MaxKey
2022-04-14 22:09:27 +08:00
parent f749f4c845
commit 5e4923d6b4
12 changed files with 113 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.Validate;
import org.apache.mybatis.jpa.util.JpaWebContext;
import org.maxkey.authz.saml.common.TrustResolver;
import org.maxkey.authz.saml20.metadata.MetadataGenerator;
import org.maxkey.constants.ContentType;
@@ -167,7 +168,8 @@ public class SamlMetadataEndpoint {
}
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<root>" + JpaWebContext.version() + "</root>";
}
/**