赞
踩
目录
1.默认没有web目录 无法写JSP 需要手动添加web目录 放在 /src/main 下
Spring官网:Spring | Home
OK了
- <dependency>
- <groupId>org.apache.tomcat.embed</groupId>
- <artifactId>tomcat-embed-jasper</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>jstl</groupId>
- <artifactId>jstl</artifactId>
- <version>1.2</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>taglibs</groupId>
- <artifactId>standard</artifactId>
- <version>1.1.2</version>
- <scope>provided</scope>
- </dependency>
- <resources>
- <resource>
- <directory>src/main/web</directory>
- <targetPath>META-INF/resources</targetPath>
- <includes>
- <include>**/*.*</include>
- </includes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.xml</include>
- <include>**/*.properties</include>
- </includes>
- </resource>
- </resources>
-
框架不允许直接访问jsp 需要走控制器
携带数据
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。