1关于页面跳转配置
在sping-mvc配置文件中添加 viewresolvers配置 通过前缀后缀
<!--ContentNegotiatingViewResolver是根据客户提交的MimeType(如 text/html,application/xml)来跟服务端的一组viewResover的MimeType相比较,如果符合,即返回viewResover的数据. --> <bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"> <property name="viewResolvers"> <list> <bean class="org.springframework.web.servlet.view.BeanNameViewResolver"/> <bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp"/> </bean> </list> </property> </bean>2 mybatis 文件映射、将mysql包下的mapper.java接口文件和 mapper.xml配置文件相映射
<mappers> <package name="com/wujieinfo/datacenter/web/dao/mysql"/> </mappers>