css文字顯示幾行超出隱藏 禁用雙擊選中
阿新 • • 發佈:2022-05-22
<!-- 元件掃描 --> <context:component-scan base-package="controller包"/> <!-- 檢視解析器 --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/pages/"/> <property name="suffix" value=".jsp"/> </bean> <!-- 註解驅動 --> <mvc:annotation-driven> <mvc:message-converters> <!-- 處理純字串中文亂碼 --> <bean class="org.springframework.http.converter.StringHttpMessageConverter"> <property name="supportedMediaTypes"> <list> <value>application/json;charset=UTF-8</value> <value>text/html;charset=UTF-8</value> </list> </property> </bean> <!-- jackson處理中文亂碼--> <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <property name="supportedMediaTypes"> <list> <value>application/json;charset=UTF-8</value> <value>text/html;charset=UTF-8</value> </list> </property> </bean> <!-- fastjson處理中文亂碼 --> <!--<bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"> <property name="supportedMediaTypes"> <list> <value>application/json;charset=UTF-8</value> <value>text/html;charset=UTF-8</value> </list> </property> </bean>--> </mvc:message-converters> </mvc:annotation-driven> <!-- 靜態資源處理 --> <mvc:default-servlet-handler/> <!-- 檔案解析器 --> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="defaultEncoding" value="UTF-8"/> <property name="maxUploadSize" value="10240000"/> </bean>