随笔分类 -  Spring

Spring
摘要:SpringMVC的搭建请参考我以前的文章 - [基于XML搭建SpringMVC项目](https://www.cnblogs.com/fanqisoft/p/10260829.html "基于XML搭建SpringMVC项目") - [基于Spring注解搭建SpringMVC项目(推荐)](h 阅读全文
posted @ 2023-06-30 10:59 SpringCore 阅读(91) 评论(0) 推荐(0) 编辑
摘要:使用JSR 356 API编写WebSocket应用,借鉴地址:https://www.baeldung.com/java-websockets 1.添加依赖 <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.webs 阅读全文
posted @ 2022-04-10 12:04 SpringCore 阅读(599) 评论(0) 推荐(0) 编辑
摘要:⒈定义一个事件,继承 ApplicationEvent 接口。 1 package cn.coreqi.eventdemo.event; 2 3 import org.springframework.context.ApplicationEvent; 4 5 public class Project 阅读全文
posted @ 2022-04-01 14:52 SpringCore 阅读(50) 评论(0) 推荐(0) 编辑
摘要:在微服务领域,使用Spring应用对另外一个应用的API发起请求的场景并不罕见。 Spring应用可以采用多张方式来消费REST API,包括以下几种方式 ⒈RestTemplate Spring核心框架提供的简单、同步REST客户端。 为了避免单调的样板代码,Spring提供了RestTempla 阅读全文
posted @ 2020-12-02 17:56 SpringCore 阅读(172) 评论(0) 推荐(0) 编辑
摘要:(1)。我新建了三个项目,SpringRmiApi(存放提供者和消费者共有的xx,例如实体类以及服务接口等等)、SpringRmiService(服务提供者)、SpringRmiProvider(服务消费者) 以下是SpringRmiApi一些代码 (2)服务提供者代码 暴露服务 (3)服务消费者 阅读全文
posted @ 2019-01-17 15:32 SpringCore 阅读(369) 评论(0) 推荐(0) 编辑
摘要:在本文开始之前,我要引入一张图,这张图的来源 https://blog.csdn.net/chenyao1994/article/details/79708496 ,版权归原作者所有,我借鉴了原作者的一些内容,在此表示感谢。 我要开始发挥了。 1)。引入依赖 1、Spring AOP依赖(略,我不会 阅读全文
posted @ 2019-01-09 20:26 SpringCore 阅读(523) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题