Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring重定向到web.xml配置中的另一个url?_Java_Spring - Fatal编程技术网

Java Spring重定向到web.xml配置中的另一个url?

Java Spring重定向到web.xml配置中的另一个url?,java,spring,Java,Spring,我正在使用Spring开发API java项目,我想将一个特定的url重定向到另一个特定的url。我知道使用控制器可以实现这一点,但我想知道,仅配置web.xml文件是否可行?简短回答:不,通过简单的xml配置无法实现这一点

我正在使用Spring开发API java项目,我想将一个特定的url重定向到另一个特定的url。我知道使用控制器可以实现这一点,但我想知道,仅配置web.xml文件是否可行?

简短回答:不,通过简单的xml配置无法实现这一点