springboot
一叶扁舟3
这个作者很懒,什么都没留下…
展开
-
java发布事件
public class OrderService { @Autowired ApplicationContext applicationContext; public void saveOrder(){ //1.创建订单 System.out.println("1.创建订单成功"); //发布事件 OrderInfo orderInfo = new OrderInfo(); orderInfo.setId(1L); applicationConte...原创 2022-02-18 22:25:37 · 618 阅读 · 0 评论 -
sts搭建springboot项目,springBoot启动报错
1.If you want an embedded database please put a supported one on the classpath. 2.springCloud com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect ...原创 2018-11-10 10:00:12 · 1000 阅读 · 0 评论 -
idea创建springboot项目
1.打开IDEA,创建新项目,选择Spring Initializr 2.勾选web 3.更改maven为本地maven 4.测试项目是否搭建成功 4.1检查端口 4.2添加controller 4.3启动项目 4.4在浏览器验证 ...原创 2018-11-23 13:47:02 · 102 阅读 · 0 评论 -
springboot 报错
版本问题: 将 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.4.RELEASE<...原创 2019-05-06 13:15:45 · 93 阅读 · 0 评论