发表于: 2017-04-01 23:49:25
2 1574
今天完成的事情:
学习了spring的相关知识
了解了DI 和 AOP
DI:依赖注入,降低了不同对象之间的耦合性,实现了个软件层之间的耦合.
AOP:应用切面,AOP允许把程序各处的功能分离出来重新组成新的功能
明天计划的事情:
因为同学的事情明天请假
遇到的问题:
按照spring官网的例子尝试了一下搭建rest webservice结果报错
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:run (default-cli) on project gs-rest-service: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:run failed: Unable to find a single main class from the following candidates [hello.Application, com.jnshu.testspring.testspring_demo.App] -> [Help 1]
收获:
对于spring有了一个新的了解,知道了DI AOP的意义
评论