08 2019 档案

摘要:freemarker常见语法大全 https://my.oschina.net/mifans/blog/761126 freemarker语法大全https://www.jianshu.com/p/61c45824b95c freemarker标签学习大全教程,很全面~https://blog.cs 阅读全文
posted @ 2019-08-30 11:25 kelelipeng 阅读(341) 评论(0) 推荐(0) 编辑
摘要:需求缘起:有人在群里@我:请教群主大神一个问题,spring boot + freemarker 怎么获取contextPath 头疼死我了,网上没一个靠谱的 。我就看看之前博客中的 【Spring Boot使用模板freemarker】好像确实没有介绍到在.ftl文件中如何获取contextPat 阅读全文
posted @ 2019-08-30 10:46 kelelipeng 阅读(557) 评论(0) 推荐(0) 编辑
摘要:本文链接:https://blog.csdn.net/lchpersonal521/article/details/53112728 前言 Spring mvc框架相信很多人都很熟悉了,关于这方面的资料也是一搜一大把。但是感觉讲的都不是很细致,让很多初学者都云里雾里的。本人也是这样,之前研究过,但是 阅读全文
posted @ 2019-08-28 20:43 kelelipeng 阅读(666) 评论(1) 推荐(0) 编辑
摘要:静态资源访问配置 https://www.jianshu.com/p/b6e0a0df32ec https://segmentfault.com/q/1010000012240531/a-1020000012250927 _______________________________________ 阅读全文
posted @ 2019-08-28 16:49 kelelipeng 阅读(3669) 评论(0) 推荐(0) 编辑
摘要:springmvc在controller方法里面跳转外网的方法 1.return new ModelAndView(new RedirectView("https://www.baidu.com")); 2.return "redirect:https://www.baidu.com/"; ____ 阅读全文
posted @ 2019-08-28 11:03 kelelipeng 阅读(2765) 评论(0) 推荐(0) 编辑
摘要:MongoDB :https://my.oschina.net/u/3452433/blog/2999501多个数据源Mongo连接:https://juejin.im/post/5cf73090f265da1b7b317887文档:https://docs.spring.io/spring-dat 阅读全文
posted @ 2019-08-27 15:21 kelelipeng 阅读(1035) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/zhiyikeji/article/details/84346189 https://blog.csdn.net/zhiyikeji/article/details/84346189 https://blog.csdn.net/zhiyikeji/arti 阅读全文
posted @ 2019-08-27 10:33 kelelipeng 阅读(449) 评论(0) 推荐(0) 编辑
摘要:本文链接:https://blog.csdn.net/u010963948/article/details/83507185 1、ApplicationContext Spring的核心,Context我们通常解释为上下文环境。ApplicationContext则是应用的容器。 Spring把Bean(object)放在容器中,需要用就通过get方法取出来。在ApplicationContext 阅读全文
posted @ 2019-08-26 14:54 kelelipeng 阅读(1391) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/pomer-huang/p/9639322.html https://blog.csdn.net/qq_38709999/article/details/99986797 SpringBoot 配置 Servlet、Filter、Listener 在S 阅读全文
posted @ 2019-08-26 13:54 kelelipeng 阅读(339) 评论(0) 推荐(0) 编辑
摘要:概括: request.getSession(true):若存在会话则返回该会话,否则新建一个会话。 request.getSession(false):若存在会话则返回该会话,否则返回NULL springboot统计当前在线人数,springboot使用HttpSessionListener 监 阅读全文
posted @ 2019-08-23 14:49 kelelipeng 阅读(2903) 评论(0) 推荐(1) 编辑
摘要:https://www.jb51.net/article/110342.htm https://www.jb51.net/article/110342.htm 本篇文章主要介绍了深度剖析java中JDK动态代理机制 ,动态代理避免了开发人员编写各个繁锁的静态代理类,只需简单地指定一组接口及目标类对象 阅读全文
posted @ 2019-08-23 14:25 kelelipeng 阅读(315) 评论(0) 推荐(0) 编辑
摘要:深入理解java动态代理的实现机制 https://blog.51cto.com/4247649/2109130 阅读全文
posted @ 2019-08-22 15:35 kelelipeng 阅读(1229) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/wanghang-learning/p/9142750.html 反射是Java中一个非常重要、非常强大的机制。曾看到一句话“反射是框架的灵魂”,初学时不懂,等到学完框架之后才慢慢理解其意。 什么是反射?我们先通过几个类和示例来初步体会一下反射。 一、 阅读全文
posted @ 2019-08-22 14:13 kelelipeng 阅读(195) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/be69b874a2a9 目录 1. Web MVC发展史历程2.Spring概要3.Spring-依赖注入概要(IOC)4.属性注入的三种实现方式5.Spring-IoC XML装配6.Spring-XML设置Bean的值7.Spring-IoC 阅读全文
posted @ 2019-08-22 10:09 kelelipeng 阅读(175) 评论(0) 推荐(0) 编辑
摘要:【SpringBoot】SpingBoot整合AOPhttps://blog.csdn.net/lmb55/article/details/82470388Spring全家桶系列–SpringBoot之AOP详解https://www.cnblogs.com/javazhiyin/p/9993299 阅读全文
posted @ 2019-08-21 16:14 kelelipeng 阅读(717) 评论(0) 推荐(0) 编辑
摘要:__________________________________________________________________________ https://www.jianshu.com/p/05c8be17c80a 前言 以往的javaEE增加Filter是在web.xml中配置,然而s 阅读全文
posted @ 2019-08-20 13:43 kelelipeng 阅读(31830) 评论(0) 推荐(1) 编辑
摘要:@Value("${server.port}") 本文链接:https://blog.csdn.net/weixin_38342534/article/details/88698582 首先 @Value("${server.port}") 获取端口号没有任何问题,那么问题出在那呢,出在单元测试中!!! 你在单元测试中,调用的类或者方法这个地方获取到的端口号就会变成-1。 解决办法:在后面加上下属 阅读全文
posted @ 2019-08-20 13:05 kelelipeng 阅读(800) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/duanxz/p/3469511.html springboot 配置文件 .properties和.yml的写法区别 例如 : redis配置的properties或yml文件,如下: spring.redis.cluster.nodes[0]=19 阅读全文
posted @ 2019-08-20 11:33 kelelipeng 阅读(9924) 评论(0) 推荐(0) 编辑
摘要:springboot 实例 https://blog.csdn.net/m0_38075425/article/details/81164930 https://www.cnblogs.com/Westfalen/p/6170312.html 1. web.xml文件中的配置 2.Character 阅读全文
posted @ 2019-08-20 10:50 kelelipeng 阅读(502) 评论(0) 推荐(0) 编辑
摘要:https://my.oschina.net/bianxin/blog/2876640 https://my.oschina.net/bianxin/blog/2876640 2.4版本的servlet规范在部属描述符中新增加了一个<dispatcher>元素,这个元素有四个可能的值:即REQUES 阅读全文
posted @ 2019-08-20 10:13 kelelipeng 阅读(370) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/chao555/p/9573102.html 1.创建自定义的拦截器并实现HandlerInterceptor接口 参数说明: Object handler: 调用的目标方法。—————————————————————————————————————— 阅读全文
posted @ 2019-08-19 19:25 kelelipeng 阅读(391) 评论(0) 推荐(0) 编辑
摘要:原 精通Spring Boot—— 第二十一篇:Spring Social OAuth 登录简介 1.什么是OAuth OAuth官网介绍是这样的: An open protocol to allow secure authorization in a simple and standard met 阅读全文
posted @ 2019-08-19 13:30 kelelipeng 阅读(284) 评论(0) 推荐(0) 编辑
摘要:本文链接:https://blog.csdn.net/zxfryp909012366/article/details/82955259 本文链接:https://blog.csdn.net/zxfryp909012366/article/details/82955259 本文链接:https://b 阅读全文
posted @ 2019-08-19 13:23 kelelipeng 阅读(1276) 评论(0) 推荐(0) 编辑
摘要:https://my.oschina.net/bianxin/blog/2876640 https://cs.xieyonghui.com/java/55.html 其实spring boot拦截器的配置方式和springMVC差不多,只有一些小的改变需要注意下就ok了。下面主要介绍两种常用的拦截器 阅读全文
posted @ 2019-08-19 11:35 kelelipeng 阅读(509) 评论(0) 推荐(0) 编辑
摘要:作者:ssslinppp 1. 拦截器简介及应用场景 2. 拦截器接口及拦截器适配器 3. 运行流程图 正常运行 中断流程 4. 程序实例 控制层: @Controller @RequestMapping(value = "/test") public class TestController { 阅读全文
posted @ 2019-08-15 17:58 kelelipeng 阅读(191) 评论(0) 推荐(0) 编辑
摘要:http://outofmemory.cn/java/spring/spring-DI-with-annotation-context-component-scan https://www.cnblogs.com/ssslinppp/p/4633496.html __________________ 阅读全文
posted @ 2019-08-15 17:08 kelelipeng 阅读(836) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/boywwj/p/7502185.html ________________________________________________________________________________________________________ 阅读全文
posted @ 2019-08-15 15:25 kelelipeng 阅读(878) 评论(0) 推荐(0) 编辑
摘要:过滤器: https://blog.csdn.net/MissEel/article/details/79351231 https://blog.csdn.net/qq_32363305/article/details/82469451 https://www.cnblogs.com/sunnies 阅读全文
posted @ 2019-08-14 18:11 kelelipeng 阅读(155) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/whx7762/p/7885735.html 1.@ProtertySource @PropertySouce是spring3.1开始引入的基于java config的注解。 通过@PropertySource注解将properties配置文件中的值存 阅读全文
posted @ 2019-08-12 17:08 kelelipeng 阅读(2799) 评论(0) 推荐(0) 编辑
摘要:原 ElasticSearch学习笔记Ⅲ - SpringBoot整合ES 新建一个SpringBoot项目。添加es的maven坐标如下: &lt;dependency&gt; &lt;groupId&gt;org.elasticsearch.client&lt;/groupId&... 原 Sp 阅读全文
posted @ 2019-08-12 17:05 kelelipeng 阅读(318) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/Y_hahaha/article/details/89186284 缘由,项目在IDEA下@Data、@Builder注解不起作用。发现是lombok这个jar包的问题。具体这个jar的应用场景自行去百度。 发现依赖的jar包maven已经下载。在网上看原 阅读全文
posted @ 2019-08-09 14:24 kelelipeng 阅读(262) 评论(0) 推荐(0) 编辑
摘要:Lombok介绍、使用方法和总结https://www.cnblogs.com/heyonggang/p/8638374.html Lombok简介、使用、工作原理、优缺点https://www.jianshu.com/p/453c379c94bd 注解@Slf4j的使用https://www.ji 阅读全文
posted @ 2019-08-09 13:21 kelelipeng 阅读(388) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_38361347/article/details/89304414 https://www.jianshu.com/p/9ea13b00b1d9 https://blog.csdn.net/zsw12013/article/details/5 阅读全文
posted @ 2019-08-09 10:14 kelelipeng 阅读(1492) 评论(0) 推荐(0) 编辑
摘要:1>在Eclipse中里设置 windows->preferences->Java->Installed JRES->edit->Default VM Arguments 在文本框中输入 -Dcatalina.base=d:/logs 2>在IDEA的run->configurations里设置 > 阅读全文
posted @ 2019-08-08 16:57 kelelipeng 阅读(2868) 评论(0) 推荐(0) 编辑
摘要:环境变量的读取以及系统属性的设置 环境变量只能读取,不能修改,系统属性可以修改 系统变量的读取方式: System.getEnv() 系统属性有多重读取和修改方式: 其修改方式为: 读取系统属性: @Autowired AbstractEnvironment environment; System. 阅读全文
posted @ 2019-08-07 21:30 kelelipeng 阅读(5936) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/xiaoleiel/p/8349495.html find / -name a*.xml -print -exec grep "searchtext" {} \; find / | xargs grep function 查找系统根目录下面的所有文件的 阅读全文
posted @ 2019-08-06 16:40 kelelipeng 阅读(15980) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_37636695/article/details/84791468 https://www.jianshu.com/p/aba99a49a459 @PostConstruct从JavaEE5规范开始,Servlet增加了两个影响Servlet生命周期 阅读全文
posted @ 2019-08-06 16:01 kelelipeng 阅读(13504) 评论(5) 推荐(1) 编辑
摘要:注解@Retention可以用来修饰注解,是注解的注解,称为元注解。Retention注解有一个属性value,是RetentionPolicy类型的,Enum RetentionPolicy是一个枚举类型,这个枚举决定了Retention注解应该如何去保持,也可理解为Rentention 搭配 R 阅读全文
posted @ 2019-08-05 16:51 kelelipeng 阅读(258) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/zhixiang-org-cn/p/9703736.html https://www.cnblogs.com/zeng1994/p/8c10310d8a042d56eddd40635afb6e93.html 最近碰到个这样的需求,需要同一套代码适配个版 阅读全文
posted @ 2019-08-05 16:37 kelelipeng 阅读(671) 评论(0) 推荐(0) 编辑
摘要:pring Boot 入门 - 进阶篇(3)- 定时任务(@Scheduled) 主要用于定时发送邮件、夜间自动维护等。 (1)开启定时任务功能 @Configuration @EnableScheduling public class SpringTaskScheduleConfig { @Bea 阅读全文
posted @ 2019-08-05 15:02 kelelipeng 阅读(249) 评论(0) 推荐(0) 编辑
摘要:____SpringBoot +MSSQL________________________________________________________________________________ https://www.cnblogs.com/wang-yaz/p/9561188.html 阅读全文
posted @ 2019-08-02 19:15 kelelipeng 阅读(3316) 评论(0) 推荐(0) 编辑
摘要:日志相关: logback:https://www.cnblogs.com/gavincoder/p/10091757.html https://www.cnblogs.com/hhhshct/p/9084036.html https://www.orchome.com/452 logback to 阅读全文
posted @ 2019-08-01 17:09 kelelipeng 阅读(141) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示