zoukankan      html  css  js  c++  java
  • controler--application配置

    <?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:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns:mvc="http://www.springframework.org/schema/mvc"
    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/spring-mvc.xsd
    http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

    <!-- 注解驱动 最少三样:注解扫描 注解驱动 视图解析器-->
    <mvc:annotation-driven >
    <!-- 将传输的字符串强制转换成utf-8编码, 防止中文乱码 -->
    <mvc:message-converters register-defaults="false">
    <bean class="org.springframework.http.converter.StringHttpMessageConverter">
    <constructor-arg value="UTF-8" />
    </bean>
    </mvc:message-converters>
    </mvc:annotation-driven>

    <!-- 给当前项目服务起个名-->
    <dubbo:application name="dubboxdemo-web" />
    <!-- 配置连接zookepper -->
    <dubbo:registry address="zookeeper://192.168.200.128:2181"/>
    <!-- 配置包扫描, 只有在这个包下面才可以注入service -->
    <dubbo:annotation package="cn.lijun.controller" />
    </beans>

  • 相关阅读:
    即将随便
    windows编程中的文件操作整理(一)
    输入输出总结
    _free 已经在 LIBCD.lib(dbgheap.obj) 中定义
    windows环境变量大全
    unity 3D学习备忘一(音频方面碰到的一些注意事项)
    unity 3D学习备忘二(unity 3D的脚本调试)
    windows编程中的文件操作整理(二)
    windows编程中的I/O系统整理
    暴雪游戏设计11大法则
  • 原文地址:https://www.cnblogs.com/lijun6/p/12029765.html
Copyright © 2011-2022 走看看