1、创建定时任务: @Component public class AutoNotifyController { /** * 获取RedisUtils注入的bean * * @return */ private ThreadUtil getThreadUtil() { ThreadUtil thre ...
分类:
编程语言 时间:
2020-07-30 16:53:27
阅读次数:
71
一.源码环境的搭建: @Component @Scope(scopeName = ConfigurableBeanFactory.SCOPE_SINGLETON,proxyMode = ScopedProxyMode.TARGET_CLASS) public class MyMath impleme ...
分类:
编程语言 时间:
2020-07-30 14:24:46
阅读次数:
64
配置父子路由关系,A.vue和B.vue是Main.vue的子组件: { path: '/main/', name: 'main', component: () => import('components/Main.vue'), children: [ { path: 'a', name: 'a', ...
分类:
其他好文 时间:
2020-07-30 01:54:24
阅读次数:
157
self-attetion 1. 输入 \[ X = EmbeddingLookup(X) + PositionalEncoding \\ X.shape == (batch\_size, seq\_len, embedding\_dim) \] 2. 计算Q,K,V \[ Q = Linear(X ...
分类:
其他好文 时间:
2020-07-30 01:46:15
阅读次数:
87
开发1:一个基本的react组件类 代码如下: // 一个基本的react组件类 export default class TableName extends Component { static const extTypes ={ router:PropTypes.any } // 初始化 con ...
分类:
其他好文 时间:
2020-07-29 17:30:08
阅读次数:
67
react-readux组件 https://github.com/reduxjs/react-redux 把一个组件拆成两个部分,一个叫UI组件,一个叫容器组件。 1,UI组件,presentational component,纯租金 特点: 只负责UI的呈现,不带有任何的业务逻辑 无状态组件,没 ...
分类:
其他好文 时间:
2020-07-29 10:34:50
阅读次数:
74
注意:spring4之后,使用注解开发需要导入AOP包org.springframework:spring-aop:5.2.5.RELEASE以及context约束,增加注解的支持 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http:/ ...
分类:
编程语言 时间:
2020-07-28 22:24:12
阅读次数:
70
Buttons Images Containers ProgressIndicators Shapes Miscellaneous ...
分类:
其他好文 时间:
2020-07-28 22:17:13
阅读次数:
62
需求需要在日历上实现多选但不连续的日期,ant design 的日历组件只能单选或者连续选择一段日期 附上代码 主代码部分 import React, { Component } from "react"; import { routerRedux } from "dva/router"; impo ...
分类:
其他好文 时间:
2020-07-28 22:08:44
阅读次数:
77
ShareModule import { NgModule, ModuleWithProviders } from '@angular/core'; @NgModule({ imports: [ HttpModule, JsonpModule, ... ], declarations: [ Show ...
分类:
其他好文 时间:
2020-07-27 23:45:04
阅读次数:
83