-1
我想禁用具有spring安全性的資源的認證。資源url包含一個java uuid。我的匹配器不符合uuid。Spring Security antMatchers UUID
web.ignoring().antMatchers(HttpMethod.GET, "/tobaccos/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$");
這段代碼匹配/ tobaccos後面的所有內容。但我只想匹配例如/菸草/ 4da42fa2-4fad-4c7f-af77-1d7890741009
我該如何解決我的問題?