简体   繁体   English

URL映射在activeweb 2.0中不可用

[英]URL mapping is not available in activeweb 2.0

In activeweb 2.0, if there is a space in the tomcat installation directory, then there will be no packages, so can not found the correct Controller and action. 在activeweb 2.0中,如果tomcat安装目录中没有空间,那么将没有软件包,因此找不到正确的Controller和操作。

Because the space will be replaced with '%20' when we use the classLoader get current class's directory. 因为当我们使用classLoader获取当前类的目录时,空格将被'%20'替换。

there is the code in org.javalite.activeweb.ControllerPackageLocator org.javalite.activeweb.ControllerPackageLocator有代码

source code 源代码

在此输入图像描述

If you feel this is a defect in the framework, please file a new issue here: https://github.com/javalite/activeweb/issues 如果您认为这是框架中的缺陷,请在此处提出一个新问题: https : //github.com/javalite/activeweb/issues

Having spaces in directory and files names will get you in trouble universally. 目录和文件名中包含空格将普遍给您带来麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM