摘要:我们通常是通过quartz.properties属性配置文件(默认情况下均使用该文件)结合StdSchedulerFactory 来使用Quartz的。StdSchedulerFactory 会加载属性配置文件并实例化一个Scheduler。 默认情况下,Quartz会加载classpath下的”q
阅读全文
随笔分类 - Java
摘要:父工程删除对spring boot启动项的引用,因为父工程 dependencyManagement,它不会自动加载包,只指定包的版本, 如果在父工程中引用了包,但是没有指定包版本,子工程将不会识别到包的版本,因此无法加载。
阅读全文
摘要:完整调试springmvc源码 WebApplicationContext = new XmlWebApplicationContext();// XmlWebApplicationContext通过反射创建 父类 AbstractRefreshableWebApplicationContext初始
阅读全文
摘要:通过xmlNode获取到它在那个命名空间下,从而通过配置命名空间的解析类进行相关处理 import、alias、bean、beans(http://www.springframework.org/schema/beans命名空间下)使用parseDefaultElement方法解析 其他的标签使用p
阅读全文
摘要:DispatcherServlet初始化,继续分析日志 主要部分: initWebApplicationContext与ContextLoader中的initWebApplicationContext方式极其相似,ContextLoader是默认创建了XmlWebApplicationContext
阅读全文
摘要:web.xml各节点加载顺序 加载顺序:context-param -> listener -> filter -> servlet Servlet不配置的话,并不会在Web启动的时候加载,而且即使配置了Servlet,没有load-on-startup节点或者配置的load-on-startup节
阅读全文
摘要:截取spring部分日志 从第2行开始到第12行为spring启动阶段log打出的所有info日志 定位其源码位置 从日志反分析spring web的启动过程 之后是loadBean ps:idea返回至上次浏览的位置快捷键Ctrl+Shift+Left/Right
阅读全文
摘要:spring web项目启动入口 1、首先看一下传统Java Web的配置文件web.xml,网上找的一个,参考地址:https://blog.csdn.net/github_36301064/article/details/53290900 2、看一下spring web项目中的web.xml d
阅读全文
摘要:spring-beans和spring-context 一、注解 1、自定义一个注解 2、使用注解 3、注解被调用,测试 4、结果 二、 Assert(断言,JDK1.4) 三、Spring中的注解 常用的: spring-context包下: @Component @Repository @Ser
阅读全文
摘要:spring-core 通过Gradle构建工具,转换包的命名空间为org.springframework下 cglib包,net.sf.cglib -> org.springframework.cglib,cglib原本引用了asm包,spring为了防止包依赖冲突,在将cglib中的内容移动到o
阅读全文
摘要:一、Spring框架 源码地址:https://github.com/spring-projects/spring-framework 构建工具:Gradle,Gradle教程:https://www.w3cschool.cn/gradle/ Gradle基于Groovy语言,Groovy教程:ht
阅读全文
摘要:1、下载 eclipse http://www.eclipse.org/downloads/eclipse-packages/ 建议下载 Eclipse IDE for Eclipse Committers 2、下载 OpenJDK 源码 http://hg.openjdk.java.net/jdk
阅读全文
摘要:1、在想要查看的类上按 Ctrl + H -> Diagrams -> Show Diagrams -> Java Class Diagrams -> Show Implementations -> Ctrl + A -> 右击一下 -> Enter 。
阅读全文
摘要:1、Bootstrap、 ExtClassLoader、 AppClassLoader是java最根正苗红的类加载器。2、Bootstrap是本地代码编写的(例如C), ExtClassLoader、 AppClassLoader是java代码,且都在rt.jar中,且很巧的都是sun.misc.L
阅读全文
摘要:修改方法如下: 点击 文件菜单(File) –> 点击 设置(Settings… Ctrl+Alt+S), –> 打开设置对话框。 在左侧的导航框中点击 KeyMap。 接着在右边的树型框中选择 Main menu –> Code –> Completion. 接着需要做两件事: 1. 移除原来的C
阅读全文
摘要:1、role表的 name 字段不可空,但并不执行回滚 参考:https://www.cnblogs.com/leohe/p/6673096.html?utm_source=itdadao&utm_medium=referral 实现方式一 实现方式二
阅读全文
摘要:1、下载并安装 Git 2、新建项目 3、配置版本控制器 4、新建github仓库 5、定位到项目根目录,执行命令 创建git仓库时忘记添加 .gitignore 怎么办? vi .gitignore 内容... esc :x 保存 git rm -r --cached . git add . gi
阅读全文
摘要:1、下载Git 2、测试Git是否安装成功 3、设置 本机 Git 标识,同时解决未设置标识产生的错误 Successfully created project 'demo' on GitHub, but initial commit failed: *** Please tell me who y
阅读全文
摘要:Jackson 以前很火 Fastjson 阿里巴巴出品
阅读全文
摘要:<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --><dependency> <groupId>org.springframework</groupId> <artifactId>spring-we
阅读全文