編寫了一個/hello訪問路徑,不管是輸入/hello還是/hello.html,還是/hello.xxx都能進行訪問。
啓動類 中重寫configurePathMatch方法;
具體實現代碼:
上述可以配置所有的url,@RequestMapping("/page1/{aaa}.html")可以配置某個具體url的後綴
編寫了一個/hello訪問路徑,不管是輸入/hello還是/hello.html,還是/hello.xxx都能進行訪問。
啓動類 中重寫configurePathMatch方法;
具體實現代碼:
上述可以配置所有的url,@RequestMapping("/page1/{aaa}.html")可以配置某個具體url的後綴
import requests data = { 'channel': '99x', 'called_number': '135xxx', 'tts_code': 'TTS_xx', 'tts_p