2021年6月3日
摘要: https://www.cnblogs.com/joy99/p/10941543.html 一、AOP——另一种编程思想 1.1 什么是 AOP AOP (Aspect Orient Programming),直译过来就是 面向切面编程。AOP 是一种编程思想,是面向对象编程(OOP)的一种补充。面 阅读全文
posted @ 2021-06-03 17:29 pcant 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 获取ApplicationContext实例的方式: 1.实现ApplicationContextAware接口 新增自定义类,并实现ApplicationContextAware接口,Spring加载该类时会自动调用setApplicationContext方法。 import org.sprin 阅读全文
posted @ 2021-06-03 11:48 pcant 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 作者:阿里巴巴淘系技术链接:https://www.zhihu.com/question/46719811/answer/1739289578来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 通过灵活定义classloader的加载机制,我们可以完成很多事情,例如解决类 阅读全文
posted @ 2021-06-03 10:35 pcant 阅读(80) 评论(0) 推荐(0) 编辑
摘要: spring配置文件(application.properties、application.yml、application.yaml))中的配置项加载到自定义类中的方法 application.properties文件内容: util.app.name = test util.app.version 阅读全文
posted @ 2021-06-03 00:29 pcant 阅读(273) 评论(0) 推荐(0) 编辑
  2021年4月20日
摘要: 实际上,Spring Boot应用程序有多种设置途径。Spring Boot能从多种属性源获得属性,包括 如下几处。 (1) 命令行参数 (2) java:comp/env里的JNDI属性 (3) JVM系统属性 (4) 操作系统环境变量50 第 3 章 自定义配置 (5) 随机生成的带random 阅读全文
posted @ 2021-04-20 08:24 pcant 阅读(122) 评论(0) 推荐(0) 编辑
  2021年4月9日
摘要: 在 pom 文件的第一行显示一个红叉,在 Eclipse 的 Problems 页签中,看到这个错误的详情是: Maven Configuration Problem 在pom.xml文件中的<properties>节点中加入<maven-jar-plugin.version>3.0.0</mave 阅读全文
posted @ 2021-04-09 16:01 pcant 阅读(630) 评论(0) 推荐(0) 编辑
  2021年3月13日
摘要: 转自:https://blog.csdn.net/qq_41453285/article/details/106878960 一、ØMQ模式总览 ØMQ支持多种模式,具体可以参阅:https://blog.csdn.net/qq_41453285/article/details/106865539 阅读全文
posted @ 2021-03-13 16:15 pcant 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/hyman_yx/article/details/44858209 阅读全文
posted @ 2021-03-13 12:05 pcant 阅读(45) 评论(0) 推荐(0) 编辑
  2021年3月10日
摘要: /* * Copyright (c) 2008, The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without 阅读全文
posted @ 2021-03-10 15:17 pcant 阅读(309) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/28424413 阅读全文
posted @ 2021-03-10 01:21 pcant 阅读(62) 评论(0) 推荐(0) 编辑