摘要: JCL(Jakarta Commons Logging) SLF4J(Simple Logging Facade for Java) Jboss-Logging Log4J JUL(java.util.logging) Log4j2 Logback Sping框架默认使用JCL SpingBoot框 阅读全文
posted @ 2019-01-26 11:17 SpringCore 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: (1)添加pom依赖 (2)编写配置文件 (3)编写配置文件 * Idea解决properties文件乱码问题 阅读全文
posted @ 2019-01-25 19:06 SpringCore 阅读(358) 评论(0) 推荐(0) 编辑
摘要: (1) (2) (3) (4) (5)感谢http://www.cnblogs.com/feiyujun/p/6537510.html (6) 阅读全文
posted @ 2019-01-25 11:30 SpringCore 阅读(531) 评论(0) 推荐(0) 编辑
摘要: (1)、引入相关依赖 (2)、编写Mybatis配置类 (3)、编写Mapper文件 (4)、编写Service文件 阅读全文
posted @ 2019-01-25 10:22 SpringCore 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 参考这篇文章https://www.cnblogs.com/fanqisoft/p/10283156.html 将提供者配置类中的 替换为 将服务消费者 替换为 阅读全文
posted @ 2019-01-17 18:20 SpringCore 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 参考这篇文章https://www.cnblogs.com/fanqisoft/p/10283156.html 将提供者配置类中的 替换为 将服务消费者 替换为 阅读全文
posted @ 2019-01-17 17:52 SpringCore 阅读(314) 评论(0) 推荐(0) 编辑
摘要: (1)三个项目,Api(存放提供者和消费者共有的xx,例如实体类以及服务接口等等)、Service(服务提供者)、Provider(服务消费者) Api部分代码 (2)服务提供者部分代码 pom添加相关依赖 编写相应配置类 *HessianServiceExporter是一个SpringMVC控制器 阅读全文
posted @ 2019-01-17 16:53 SpringCore 阅读(552) 评论(0) 推荐(0) 编辑
摘要: (1)。我新建了三个项目,SpringRmiApi(存放提供者和消费者共有的xx,例如实体类以及服务接口等等)、SpringRmiService(服务提供者)、SpringRmiProvider(服务消费者) 以下是SpringRmiApi一些代码 (2)服务提供者代码 暴露服务 (3)服务消费者 阅读全文
posted @ 2019-01-17 15:32 SpringCore 阅读(366) 评论(0) 推荐(0) 编辑
摘要: (1)pom添加依赖 (2)添加相应配置类 (3)dao使用相应的注解 仅仅作为参考 (4)*(不重要)自定义表达式处理器,如何注册参考(2) 阅读全文
posted @ 2019-01-16 22:47 SpringCore 阅读(746) 评论(0) 推荐(0) 编辑
摘要: (1)pom添加依赖项 (2)设置相应的bean,添加@EnableCaching 注解启用缓存功能 (3)在dao相应的方法上添加缓存相关注解(可以在dao接口或dao实现类上添加) 此处仅作实例代码。 阅读全文
posted @ 2019-01-16 20:15 SpringCore 阅读(2301) 评论(0) 推荐(0) 编辑