master
陈峰 1 year ago
parent 117a81ff1a
commit d03a099350
  1. 2
      framework-core/pom.xml
  2. 2
      framework-core/src/main/java/com/unionmed/framework/http/builder/RequestBuilder.java
  3. 2
      framework-core/src/main/java/com/unionmed/framework/spring/mvc/MvcConfiguration.java
  4. 1
      framework-core/src/main/java/com/unionmed/framework/spring/mvc/filter/RequestFilterWrapper.java
  5. 2
      framework-orm/pom.xml
  6. 2
      framework-test/pom.xml
  7. 2
      pom.xml

@ -5,7 +5,7 @@
<parent>
<groupId>com.unionmed</groupId>
<artifactId>unionmed-framework</artifactId>
<version>0.0.16</version>
<version>0.0.17</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -298,7 +298,7 @@ public class RequestBuilder {
for (Map.Entry<String, Object> entry : body.entrySet()) {
sj.add(entry.getKey() + "=" + entry.getValue());
}
this.body = sj.toString();
_body(sj.toString());
return this;
}

@ -63,7 +63,7 @@ public class MvcConfiguration {
registration.setFilter(new RequestFilterWrapper(requestResponseBodyCryptProperties));
registration.addUrlPatterns("/*");
registration.setName("repeatRequestFilter");
registration.setOrder(1);
registration.setOrder(0);
return registration;
}
}

@ -23,6 +23,7 @@ public class RequestFilterWrapper extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
httpServletResponse.addHeader("Access-Control-Allow-Origin", "*");
filterChain.doFilter(new RepeatHttpServletRequestWrapper(requestResponseBodyCryptProperties, httpServletRequest), httpServletResponse);
}
}

@ -5,7 +5,7 @@
<parent>
<artifactId>unionmed-framework</artifactId>
<groupId>com.unionmed</groupId>
<version>0.0.16</version>
<version>0.0.17</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<groupId>com.unionmed</groupId>
<artifactId>unionmed-framework</artifactId>
<version>0.0.16</version>
<version>0.0.17</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.unionmed</groupId>
<artifactId>unionmed-framework</artifactId>
<version>0.0.16</version>
<version>0.0.17</version>
<packaging>pom</packaging>
<name>unionmed-framework</name>

Loading…
Cancel
Save