fi3ework's Studio.

fi3ework's Studio.

it's better to burn out than to fade away

Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" ceshit More info: Writing Run server1$ hexo ser...
英语语法-关系从句

概念:用句子修饰另一句子中的概念(词 to 整个句子)

单词:The woman who lives next door is a famous dancer.

短语:He likes climbing mountains, which is a good exercise.

分句:He said that he had no time, which isn’t true.

英语语法-副词

时间副词

种类

1.确切时间:yesterday, today, now, tomorrow

2.不确切时间:already, recently, lately, before, soon, then, afterwards

3.副词短语:this morning, last night, in the morning, a week ago, three months ago,

英语语法-动名词

做主语

1. 直接句首做主语:谓语动词用单数

​ a. Seeing is believing.

​ b. Reading is like permitting a man to talk a long time, and refusing you the right to answer.

英语语法-动词不定式

做主语:It + to do sth 句型

1. It + to do sth句型;it做形式主语

​ a. It is easier to spend money than to make money.

​ b. It takes time to study English well.

​ 形式主语it不能用this或that替换

英语语法-定语从句

完整句子做定语

形容词做定语放在被修饰词前面

完整句子做定语放在被修饰词后面

定语从句的重要概念

先行词:被修饰或限定的词(the people)

英语语法-被动语态

构成:be + 过去分词

不同时态的被动语态be变化

is, is being, has been, was, was being, had been, will be, will have been

不用by情况

  • 实施者明显

​ a. The rubbish hasn’t been collected.

spring-boot实现动态增删启停定时任务

在spring boot项目中,可以通过@EnableScheduling注解和@Scheduled注解实现定时任务,也可以通过SchedulingConfigurer接口来实现定时任务。但是这两种方式不能动态添加、删除、启动、停止任务。要实现动态增删启停定时任务功能,比较广泛的做法是集成Quartz框架。但是本人的开发原则是:在满足项目需求的情况下,尽量少的依赖其它框架,避免项目过于臃肿和复杂。查看spring-context这个jar包中org.springframework.scheduling.ScheduledTaskRegistrar这个类的源代码,发现可以通过改造这个类就能实现动态增删启停定时任务功能。

avatar
fi3ework
witness me
FRIENDS
friendA friendB