---
title: "现有web系统替换成Spring Boot2框架 之8 url匹配"
author: "sanry"
date: "2019-02-22T11:23:57Z"
tags: []
categories: ["编程语言"]
slug: "web-spring-boot2-8-url"
draft: false
lastmod: "2019-02-22T11:23:57Z"
id: 2437835
url: "https://sanry.iteye.com/blog/2437835"
---

application.properties中增加配置：

spring.mvc.contentnegotiation.favor-path-extension=true

spring.mvc.pathmatch.use-suffix-pattern=true