ssm使用全注解实现增删改查案例——applicationContext-servlet.xml
生活随笔
收集整理的這篇文章主要介紹了
ssm使用全注解实现增删改查案例——applicationContext-servlet.xml
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xmlns:context="http://www.springframework.org/schema/context"xmlns:mvc="http://www.springframework.org/schema/mvc"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsdhttp://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd"><mvc:annotation-driven /><!-- HandlerMapping --> <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/> <!-- HandlerAdapter --> <bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/> <!-- 掃描@Controllenr注解的action --><context:component-scan base-package="org.action"/><!-- 對模型視圖名稱的解析 --><!-- 配置前綴和后綴 --><bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"><property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/><!-- 視圖前綴 --><property name="prefix" value="/"/><!-- 視圖的后綴名 --><property name="suffix" value=".jsp"/></bean></beans>
總結
以上是生活随笔為你收集整理的ssm使用全注解实现增删改查案例——applicationContext-servlet.xml的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是频数和频率怎么求 频数和频率计算方
- 下一篇: 荣耀手机明年一季度将在印度生产 更多新机