解决方法,代理的属性上加上端口配置server_port
proxy_set_header Host $host:$server_port;

     #proxy_set_header        Host $host;
     #nginx非80端口处理 加上 :$server_port
     proxy_set_header   Host $host:$server_port;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_redirect off;
     client_max_body_size 10m;      
     client_body_buffer_size 128k;  
     proxy_connect_timeout 90;      
     proxy_read_timeout 90;         
     proxy_buffer_size 4k; 
     proxy_buffers 6 32k; 
     proxy_busy_buffers_size 64k;  
     proxy_temp_file_write_size 64k; 

在 spring boot项目的config目录下,创建,WebConfig类

71878-z1iaywlq24.png

代码如下,核心属性是matcher.setCaseSensitive(false);

import org.springframework.util.AntPathMatcher;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.context.annotation.Configuration;

/**
 * springBoot 设置spring mvc请求地址不区分大小写.
 */
@Configuration
public class WebConfig extends WebMvcConfigurationSupport {

    @Override
    public void configurePathMatch(PathMatchConfigurer configurer) {
        AntPathMatcher matcher = new AntPathMatcher();
        matcher.setCaseSensitive(false);
        configurer.setPathMatcher(matcher);
    }

}

As a new Android application compiler, Huawei's Ark compiler can significantly improve the speed of mobile phones. According to Huawei's official data, the Ark compiler can improve system fluency by 24%, improve system response by 44%, and improve 60% of the three-party application operation fluency.

33450-7t9nxdxpudm.png

Huawei's consumer business CEO Yu Chengdong announced the launch of the Huawei Ark compiler, which claims to solve the inefficiency of the Android program "interpreting and executing".

Yu Chengdong said that the Ark compiler can achieve architectural-level optimization and significantly improve performance. His data shows that the Ark compiler can improve operating system fluency by 24%, system response by 44%, and third-party application fluency by 60%.

72204-23rsh0g1872.png

He said that the Ark compiler will be open source for the industry and hope that App developers will use it as soon as possible.

华为方舟编译器作为一款全新的安卓应用编译器能显著提高手机的运行速度,根据华为官方数据,方舟编译器能够提升24%的系统操作流畅度,提升44%的系统响应能力,还能提升60%的三方应用操作流畅度。
33450-7t9nxdxpudm.png

华为消费者业务 CEO 余承东宣布推出华为方舟编译器,称可解决安卓程序“边解释边执行”的低效。

  余承东表示,方舟编译器可实现架构级优化,显著提升性能。他公布的数据显示,方舟编译器可让操作系统流畅度提升 24%,系统响应提升 44%,第三方应用操作流畅度提升 60%。

  他表示,方舟编译器将面向业界开源,希望 App 开发厂商尽快使用。
72204-23rsh0g1872.png

  此外,余承东还宣布对 GPU Tubro 进行升级,新增支持了 50 多款游戏。(张俊)

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。