polishing
This commit is contained in:
parent
b5e826976c
commit
0598eafb84
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2010 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.
|
||||
|
|
@ -60,9 +60,9 @@ public class BeanNameUrlHandlerMapping extends AbstractDetectingUrlHandlerMappin
|
|||
urls.add(beanName);
|
||||
}
|
||||
String[] aliases = getApplicationContext().getAliases(beanName);
|
||||
for (int i = 0; i < aliases.length; i++) {
|
||||
if (aliases[i].startsWith("/")) {
|
||||
urls.add(aliases[i]);
|
||||
for (String alias : aliases) {
|
||||
if (alias.startsWith("/")) {
|
||||
urls.add(alias);
|
||||
}
|
||||
}
|
||||
return StringUtils.toStringArray(urls);
|
||||
|
|
|
|||
Loading…
Reference in New Issue