随笔分类 -  Spring

摘要:public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFactory implements ConfigurableListableBeanFactory, BeanDefinitionRegistry, 阅读全文
posted @ 2021-07-27 15:35 JasonPeng1 阅读(17) 评论(0) 推荐(0)
摘要:/* * 该方法是spring容器初始化的核心方法。是spring容器初始化的核心流程,是一个典型的父类模板设计模式的运用 * 根据不同的上下文对象,会掉到不同的上下文对象子类方法中 * * 核心上下文子类有: * ClassPathXmlApplicationContext * FileSyste 阅读全文
posted @ 2021-07-24 00:19 JasonPeng1 阅读(33) 评论(0) 推荐(0)
摘要:package com.apress.reactor.example; import com.apress.reactor.example.domain.ToDo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org 阅读全文
posted @ 2020-02-07 06:01 JasonPeng1 阅读(237) 评论(0) 推荐(0)
摘要:package com.apress.todo.repository; import com.apress.todo.domain.ToDo; import org.springframework.dao.EmptyResultDataAccessException; import org.spri 阅读全文
posted @ 2020-02-06 13:33 JasonPeng1 阅读(583) 评论(0) 推荐(0)
摘要:The Spring MVC is designed around the org.springframework.web.servlet. DispatcherServlet class. This servlet is very flexible and has a very robust fu 阅读全文
posted @ 2020-02-06 00:29 JasonPeng1 阅读(410) 评论(0) 推荐(0)
摘要:@RestController class WebApp{ @GetMapping('/') String index(){ "Spring Boot Rocks" } } Review the output from the command in your terminal. Note all t 阅读全文
posted @ 2020-02-05 21:31 JasonPeng1 阅读(189) 评论(0) 推荐(0)
摘要:先来看下手动配置bean的过程(第一章还没使用Spring Boot) A Simple Spring Web Application Let’s start by creating a Spring web application— a ToDo app that offers a REST AP 阅读全文
posted @ 2020-02-05 14:03 JasonPeng1 阅读(288) 评论(0) 推荐(0)
摘要:项目效果预览: 安装成功的效果图: kibana安装: ES使用的是倒排索引 参考:https://www.yuque.com/gaohanghang/vx5cb2/aa576g#HuZ1N 《Springboot + ElasticSearch 构建博客检索系统》 视频地址:https://www 阅读全文
posted @ 2020-01-28 17:42 JasonPeng1 阅读(1163) 评论(0) 推荐(0)
摘要:Using WebSocket to build an interactive web application This guide walks you through the process of creating a “Hello, world” application that sends m 阅读全文
posted @ 2020-01-26 16:40 JasonPeng1 阅读(363) 评论(0) 推荐(0)
摘要:来自官方文档:https://spring.io/guides/gs/serving-web-content/ This guide walks you through the process of creating a “Hello, World” web site with Spring. Wh 阅读全文
posted @ 2020-01-26 15:04 JasonPeng1 阅读(415) 评论(0) 推荐(0)
摘要:课程链接—https://www.imooc.com/video/20548 开发中遇到的问题: 解决方法: 在配置文件(proprites文件或yml文件)中的数据库url中添加: &serverTimezone=UTC如图: 阅读全文
posted @ 2020-01-25 14:07 JasonPeng1 阅读(208) 评论(0) 推荐(0)
摘要:Getting Started Guides 成果图: 原文: https://spring.io/guides/gs/relational-data-access/#scratch 中文版:https://github.com/SpringForAll/spring-guides-translat 阅读全文
posted @ 2020-01-21 16:32 JasonPeng1 阅读(339) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-20 22:46 JasonPeng1 阅读(225) 评论(0) 推荐(0)