在 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 多款游戏。(张俊)

C#中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别

// 获取程序的基目录。
System.AppDomain.CurrentDomain.BaseDirectory

// 获取模块的完整路径。
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName

// 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。
System.Environment.CurrentDirectory

// 获取应用程序的当前工作目录。
System.IO.Directory.GetCurrentDirectory()

// 获取和设置包括该应用程序的目录的名称。
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase

// 获取启动了应用程序的可执行文件的路径。
System.Windows.Forms.Application.StartupPath

// 获取启动了应用程序的可执行文件的路径及文件名
System.Windows.Forms.Application.ExecutablePath

C# WinForm中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别示例如下:

private void Frm_Server_Load(object sender, EventArgs e)
        {
            MessageBox.Show(AppDomain.CurrentDomain.BaseDirectory);
            MessageBox.Show(Application.StartupPath );
         }

说明:

  1. AppDomain.CurrentDomain.BaseDirectory 返回结果为: D:mycode\

    Application.StartupPath 返回结果为: D:\mycode
  2. Application.StartupPath 只能用于WinForm窗体中,而AppDomain.CurrentDomain.BaseDirectory既可以用于WinForm窗体中,也可以用于类库DLL文件中.
免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。