The preparation of the resource configuration file applicationContext.xml profile zookeeper in the controller project

<? XML Version = "1.0" encoding = "UTF-. 8"?> 
<Beans xmlns = "http://www.springframework.org/schema/beans"
xmlns: the xsi = "http://www.w3.org / 2001 / XMLSchema-instance "xmlns: MVC =" http://www.springframework.org/schema/mvc "
xmlns: Dubbo =" http://code.alibabatech.com/schema/dubbo "
xsi: schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http: // www .springframework.org / Schema / MVC / the Spring-mvc.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">
<! - annotation-driven ->
<MVC: annotation-driven>
<- incoming character was forced to turn utf-8 to prevent the Chinese garbled ->!
<mvc:message-converters register-defaults="false">
<the bean class = "org.springframework.http.converter.StringHttpMessageConverter">
<constructor-Arg value = "UTF-. 8" />
</ the bean>
</ MVC: Message-Converters>
</ MVC: Annotation-Driven>
< ! - service to the project a name ->
<Dubbo: file application name = "dubboxdemo-Web" />
<- zookeeper connection configuration of the port number and ip ->!
<Dubbo: Registry address = "zookeeper: / /192.168.200.128:2181 "/>
<- annotation class using @Controller scan package configuration takes effect achieved in this package ->!
<Dubbo: annotation package =" cn.lijun.controller "/>
</ beans>

Guess you like

Origin www.cnblogs.com/lijun6/p/11287365.html
Recommended