|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
|
* Copyright 2002-2020 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -61,6 +61,10 @@ public class ViewControllerRegistry {
@@ -61,6 +61,10 @@ public class ViewControllerRegistry {
|
|
|
|
|
* <p>Patterns like {@code "/admin/**"} or {@code "/articles/{articlename:\\w+}"} |
|
|
|
|
* are allowed. See {@link org.springframework.util.AntPathMatcher} for more details on the |
|
|
|
|
* syntax. |
|
|
|
|
* <p><strong>Note:</strong> If an {@code @RequestMapping} method is mapped |
|
|
|
|
* to a URL for any HTTP method then a view controller cannot handle the |
|
|
|
|
* same URL. For this reason it is recommended to avoid splitting URL |
|
|
|
|
* handling across an annotated controller and a view controller. |
|
|
|
|
*/ |
|
|
|
|
public ViewControllerRegistration addViewController(String urlPath) { |
|
|
|
|
ViewControllerRegistration registration = new ViewControllerRegistration(urlPath); |
|
|
|
|
|