Skip to content

Commit fdeec3c

Browse files
vonzhouvonzhou
vonzhou
authored and
vonzhou
committed
群山回响
1 parent 9ef14ac commit fdeec3c

File tree

993 files changed

+24014
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

993 files changed

+24014
-159
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,21 +283,54 @@ org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 96; cvc-complex-type
283283

284284
## 10. 使用远程服务
285285

286-
* java RMI基本原理
286+
* 先要保证不用Spring的时候这些RPC的基本使用和原理,否则框架会蒙蔽你的脑子
287287
* 在阅读Oracle的rmi文档的时候,感觉很爽啊,有时间多看看这些原汁原味的文档,收获自然不菲
288288
* java -cp 参数的多个路径用冒号分隔,. 代码当前目录
289289
* 实现一个简单的RMI示例,Java RMI tutorial没有跑通。如果出现LocateRegistry.createRegistry()绑定默认的1099端口失败,那么就先杀死他,然后启动rmiregistry,如下:
290290

291291
![](rmidemo/kill-rmiregistry.jpg)
292292

293-
293+
* 简单示例GreetingService中, 通过rmi 方法调用返回的是String对象,String显然实现了java.io.java.io.Serializable,在这里问题UnmarshalException->NotSerializableException就出现在远程方法调用返回的是Spitter对象,所以就要牵扯到对象从RMI server传输到本地,所以Spitter要实现Serializable
294+
* 根据出现的 UnmarshalException 的 ClassNotFoundException 的类的包名,还可以发现一个问题, Spitter对象是在远程获得的,所以需要load到本地,所以包名也要一致,否则就属于不同的Spitter啊。
295+
* 纯粹的使用Hessian, 然后整合到Spring中 [示例 hello-hessian-spring](hello-hessian-spring) 。Spring 并没有做更多的简化,只是集成。
294296

295297

296298

297299

298300
**参阅学习:**
299301

300302
* [Trail: RMI: Table of Contents](http://docs.oracle.com/javase/tutorial/rmi/TOC.html), 搞了半天没有跑通,草!
303+
* [stackoverflow - hibernate exception Null value was assigned to a property of primitive type setter](http://stackoverflow.com/questions/3154582/why-do-i-get-a-null-value-was-assigned-to-a-property-of-primitive-type-setter-o)
304+
* [stackoverflow - WriteAbortedException: writing aborted; java.io.NotSerializableException:](http://stackoverflow.com/questions/2294551/java-io-writeabortedexception-writing-aborted-java-io-notserializableexception)
305+
306+
307+
**跑起来√** [spitter-remoting-rmi](spitter-remoting-rmi)
308+
309+
**跑起来√** [hello-hessian](hello-hessian) 整合到Spring中, [hello-hessian-spring](hello-hessian-spring), [hello-hessian-spring-client](hello-hessian-spring-client)
310+
311+
**跑起来√** [hello-httpinvoker](hello-httpinvoker)
312+
313+
314+
## 11. 为Spring添加REST功能
315+
316+
* 理解REST的基本哲学
317+
* 处理RESTful的URL,写对应的控制器
318+
* HTTP各种方法的理解
319+
* 使用RestTemplate
320+
* 编写REST客户端,以及HttpMessageConverter对客户端的适应
321+
* component-scan中的多个package使用逗号分隔
322+
* Fuck, 以后尽量手动的mvn clean pakcage, 然后用IDE部署运行,否则有些问题。
323+
324+
**跑起来√** [spitter-web-rest]()
325+
326+
327+
## 12. Spring消息
328+
329+
* 之前在阿里实习的时候,对RocketMQ有过较为深入的阅读
330+
*
331+
332+
333+
301334

302335

303336

@@ -317,3 +350,6 @@ org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 96; cvc-complex-type
317350

318351

319352

353+
354+
355+

hello-hessian-spring-client/.idea/artifacts/hello_hessian_spring_war.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/artifacts/hello_hessian_spring_war_exploded.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/artifacts/hello_hessian_war.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/artifacts/hello_hessian_war_exploded.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/compiler.xml

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/copyright/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__com_caucho_hessian_4_0_7.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__junit_junit_3_8_1.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_aop_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_beans_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_context_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_core_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_expression_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_web_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/libraries/Maven__org_springframework_spring_webmvc_4_2_5_RELEASE.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/misc.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hello-hessian-spring-client/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)