mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-06-30 21:17:37 +08:00
update:优化代码
This commit is contained in:
parent
60ced18885
commit
1faa5cc2ae
@ -56,7 +56,7 @@ public class ServletUtils {
|
||||
* <filter-name>requestContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>
|
||||
*/
|
||||
public static HttpServletResponse getResponse() {
|
||||
HttpServletResponse response = null;
|
||||
HttpServletResponse response;
|
||||
try {
|
||||
response = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getResponse();
|
||||
if (response == null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user