jsp和thymleaf在一个春季启动项目中,没有工作

时间:2017-09-06 11:20:07

标签: spring spring-mvc spring-boot thymeleaf spring-web

代码(使用V0.0.2)

<Segment inverted>
   <Menu fixed = "top" inverted pointing
       secondary stackable size="large" >
     <Container>
       <Menu.Item as="a" name="Item1">
       <Menu.Item as="a" name="Item2">
     </Container>
   </Menu>
</Segment>

为解决方案提出了这个问题,并尝试实施它,但它没有用。

https://github.com/vikashsaini01/TaskFirst/tree/V0.0.2

我正在尝试实现一个简单的弹簧安全项目。我最终在我的项目中同时拥有thymleaf和jsp :)。我引用了上面的url来解决这个问题,并尝试将配置复制到xml中作为java配置。但它没有用。如果我在pom中使用thymleaf jar,jsp会停止工作。如果我配置视图解析器thymleaf停止工作。 还有一件事https://stackoverflow.com/questions/28480223/using-both-thymeleaf-and-jsp 没有ServletContextTemplateResolver,所以我为此配置了etViewNames(String..)

我可以获得以下两项工作的帮助。

http://localhost:8080/tasks(在文件夹setName(String)中) http://localhost:8080/home(在文件夹TaskFirst\src\main\webapp\WEB-INF\jsp\tasks.jsp中)

0 个答案:

没有答案