摘要: 安装: 我们在开发时,需要知道注册中心都注册了哪些服务,以便我们开发和测试。我们可以通过部署一个管理中心来实现。其实管理中心就是一个web应用,部署到tomcat即可。 (1)编译源码,得到war包 给大家下发的资源中有个dubbox-master.zip ,这个是dubbox的源码,我们可以使用m 阅读全文
posted @ 2019-07-02 15:30 keepup~ 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 开发步骤: (1)创建Maven工程(WAR)dubboxdemo-web ,在pom.xml引入依赖 ,同“dubboxdemo-service”工程。区别就是把tomcat插件的运行端口改为8082 。 (2)在webapps目录下创建WEB-INF 目录,并创建web.xml <?xml ve 阅读全文
posted @ 2019-07-02 10:00 keepup~ 阅读(289) 评论(0) 推荐(0) 编辑
摘要: (1)创建Maven工程(WAR)dubboxdemo-service ,在pom.xml中引入依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst 阅读全文
posted @ 2019-07-02 09:58 keepup~ 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 在src/main/resources下创建applicationContext-web.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xml 阅读全文
posted @ 2019-07-02 09:54 keepup~ 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 在src/main/resources下创建applicationContext-service.xml ,内容如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema 阅读全文
posted @ 2019-07-02 09:49 keepup~ 阅读(412) 评论(0) 推荐(0) 编辑
摘要: <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <!-- 指定加载的配置文件 ,通过参数 阅读全文
posted @ 2019-07-02 09:18 keepup~ 阅读(652) 评论(0) 推荐(0) 编辑
摘要: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext*.xml</param-value> </context-param> <listener 阅读全文
posted @ 2019-07-02 09:15 keepup~ 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: <!-- 解决post乱码 --> <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</fi 阅读全文
posted @ 2019-07-02 09:09 keepup~ 阅读(456) 评论(0) 推荐(0) 编辑