google-code-export / nutz

Automatically exported from code.google.com/p/nutz
Apache License 2.0
1 stars 1 forks source link

当URL中使用EL表达式时,每次都扫描OPT类,效率低下 #438

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
org.nutz.resource.impl.WebResourceScan - Scan in web classes : 
H:\Java3\Nutz-X\bin\org\nutz\el\opt 

有多少个@At使用了EL表达式,就扫描多少次

异常堆栈:

相关日志:
2011-04-12 10:06:10,881 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/jsp4'               >> jspView4(...) : void | 
@Ok(jsp:/WEB-INF/jsp/views/jspView.jsp) @Fail(json) | by 0 Filters | 
(I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,912 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,912 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/red'                >> serverRedirectView(...) : void | 
@Ok(>>:/${p.to}.jsp) @Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/red2'               >> serverRedirectView2(...) : void | 
@Ok(RedirEct:/${p.to}.jsp) @Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,959 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,975 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/red3'               >> serverRedirectView3(...) : void | 
@Ok(redirect:/${p.to}.jsp) @Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,975 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,975 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,975 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/for'                >> forwardView(...) : void | @Ok(->:/${p.to}.jsp) 
@Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/for2'               >> forwardView2(...) : void | 
@Ok(fOrWard:/${p.to}.jsp) @Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.resource.Scans - Scan Resource by 
org.nutz.resource.impl.WebResourceScan@8ceeea
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.resource.impl.WebResourceScan - 
Scan in web classes : H:\Java3\Nutz-X\bin\org\nutz\el\opt , base = 
H:/Java3/Nutz-X/bin/
2011-04-12 10:06:10,990 [main] DEBUG org.nutz.mvc.impl.UrlMappingImpl -    
'/views/for3'               >> forwardView3(...) : void | 
@Ok(forward:/${p.to}.jsp) @Fail(json) | by 0 Filters | (I:UTF-8/O:UTF-8)

Original issue reported on code.google.com by wendal1985@gmail.com on 12 Apr 2011 at 2:09

GoogleCodeExporter commented 9 years ago
Fix in r1962

Original comment by wendal1985@gmail.com on 12 Apr 2011 at 2:31