Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.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 “:”的目的是什么:#&引用;在从RequestMethod返回的字符串中?_Java_Spring_Controller - Fatal编程技术网

Java “:”的目的是什么:#&引用;在从RequestMethod返回的字符串中?

Java “:”的目的是什么:#&引用;在从RequestMethod返回的字符串中?,java,spring,controller,Java,Spring,Controller,在我的项目中,我在方法中看到以下返回语句: @RequestMapping(method=RequestMethod.GET, params="part=category-fieldset") public String partCategoryFieldset(@PathVariable String language, Model model) { CategoryTree categoryTree = categoryService.readCategoryTree(languag

在我的项目中,我在方法中看到以下返回语句:

@RequestMapping(method=RequestMethod.GET, params="part=category-fieldset")
public String partCategoryFieldset(@PathVariable String language, Model model) {
    CategoryTree categoryTree = categoryService.readCategoryTree(language);
    model.addAttribute("categoryTree", categoryTree);
    return "/article/create::#category-fieldset";
}
所以,我想问:在返回语句中使用双冒号和锐号的目的是什么?这是什么意思?
谢谢大家!

是啊!我为自己找到了答案。这是百里香。

您使用哪种渲染框架,JSP、JSF、(Tiles)、thymeleaf等等。请在spring(xml)中发布渲染框架的配置,
:#
必须与此相关。谢谢。我得到了它。这是Thymeleaf框架。更准确地说:这是用于在spring控制器返回值中指定片段的Thymeleaf语法:-章节“11.2在控制器返回值中指定片段”如果您能稍微改进一下答案,那就太好了,这样,有人怎么会有相同的问题,找到这个问题和答案,就会知道什么是
:#是关于(它不仅是任何Thymeleaf函数,而且是