会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
围观的小妖
博客园
首页
新随笔
联系
管理
订阅
2020年6月26日
ElasticsearchStatusException
摘要: ElasticsearchStatusException 依赖版本不对
阅读全文
posted @ 2020-06-26 23:25 围观的小妖
阅读(2819)
评论(0)
推荐(0)
2020年6月14日
MonoDB 之Template使用
摘要: MongoTemplate:(主要是集合和文档的增删改查) 方法: getCollectionNames getCollection collectionExists collectionExists dropCollection dropCollection indexOps indexOps s
阅读全文
posted @ 2020-06-14 21:31 围观的小妖
阅读(587)
评论(0)
推荐(0)
Spring使用MongoDB
摘要: 准备集成环境,添加依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version>
阅读全文
posted @ 2020-06-14 18:29 围观的小妖
阅读(770)
评论(0)
推荐(0)
Git结合码云开发
摘要:
阅读全文
posted @ 2020-06-14 16:31 围观的小妖
阅读(132)
评论(0)
推荐(0)
RESTful
摘要: 8. 实例代码 package cn.wolfcode.demo.web.controller; import cn.wolfcode.demo.domain.Role; import org.springframework.stereotype.Controller; import org.spr
阅读全文
posted @ 2020-06-14 16:30 围观的小妖
阅读(124)
评论(0)
推荐(0)
SpringBoot的@Import和@ImportResource
摘要: @Import 源码 @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Import { /** * {@link Configuration @Configurat
阅读全文
posted @ 2020-06-14 16:23 围观的小妖
阅读(720)
评论(0)
推荐(0)
SpringBoot引入其他配置文件
摘要: @PropertySource 属性 1.value为要加载的文件,可以是多个,当以classpath开头时,程序会自动到classpath中读取,当以file开头时,会加载外部的文件2.name是表示要加载文件的名称,这里要加载的配置文件必须是 唯一的不能是多个3.encoding,设置编码,我们
阅读全文
posted @ 2020-06-14 10:55 围观的小妖
阅读(4886)
评论(0)
推荐(0)
SpringBoot加载application.properties配置文件的顺序
摘要: 一级:项目根目录中的config/application.properties 二级:项目根目录下的application.properties 三级:项目src/main/resources/config/下的appliacation.properties 四级:.项目src/main/resou
阅读全文
posted @ 2020-06-14 10:31 围观的小妖
阅读(651)
评论(0)
推荐(0)
2020年6月13日
Interceptor(拦截器)
摘要: Interceptor类 package cn.wolfcode.interceptor; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelA
阅读全文
posted @ 2020-06-13 17:39 围观的小妖
阅读(435)
评论(0)
推荐(0)
Filter(过滤器)
摘要: 不使用SpringBoot Filter过滤类 1 public class FilterDemo implements Filter { 2 3 @Override 4 public void doFilter(ServletRequest servletRequest, ServletRespo
阅读全文
posted @ 2020-06-13 17:23 围观的小妖
阅读(222)
评论(0)
推荐(0)
公告