config ts

'org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity' is deprecated

@EnableGlobalMethodSecurity(prePostEnabled = true) 已经被弃用了,最新的是:@EnableMethodSecurity。 file:[SecurityConfig.java] @Configuration @EnableWebSecurity add ......

解决uniapp button type ts类型冲突问题

安装类型声明文件 npm i -D @dcloudio/types miniprogram-api-typings @uni-helper/uni-app-types @uni-helper/uni-ui-types // tsconfig.json { "compilerOptions": { / ......
类型 uniapp button 问题 type

vue3.2+ts报错:找不到模块“./App.vue”或其相应的类型声明。

解决方法:在项目根目录创建 env.d.ts 文件(如果已有,则在文件中追加)加入下面内容: declare module '*.vue' { import type { DefineComponent } from 'vue'; const vueComponent: DefineComponen ......
vue 模块 类型 vue3 App

Python3爬虫通过m3u8文件下载ts视频 Python爬虫

什么是m3u8文件? M3U8文件是指UTF-8编码格式的M3U文件。 M3U文件是记录了一个索引纯文本文件,打开它时播放软件并不是播放它,而是根据它的索引找到对应的音视频文件的网络地址进行在线播放。 原视频数据分割为很多个TS流,每个TS流的地址记录在m3u8文件列表中 比如我这里有一个m3u8文 ......
爬虫 Python 文件下载 Python3 文件

ERROR in node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts(3,61): error TS1005: ‘,’ expected.

原文链接:https://www.longkui.site/error/error-in-node_modules-rxjs/4839/ angular项目,启动的时候报错。详细的报错如下: 这个报错的原因比较简单,rxjs的版本不对,我用的是angular7可能和rxjs版本不匹配。 解法方法也很 ......

idea调试ts

1、安装IDEA插件 Run Configuration for Typescript 2、全局安装ts-node npm install -g ts-node 3、安装ts依赖包(可以用于打印console) npm install -D tslib @types/node 4、如果是成熟的项目, ......
idea

vite.config.js base 与 vue-router base

vite.config.js base 决定了打包后,资源引用的前缀 base:'/hlw/' link ref='/hlw/assets' 打包后的dist要放到 /hlw 路径下 base 的值 与 process.env.BASE_URL、import.meta.env.BASE_URL一致 ......
base vue-router config router vite

vsvim config 2023-10-10 23:30:10

" = Extensions Plug 'tpope/vim-surround' Plug 'preservim/nerdtree' " = Basic settings set clipboard+=unnamed set ignorecase set scrolloff=30 set histo ......
10 config vsvim 2023 23

在ts时使用axios请求类型定义增加属性

1.需求 在后台请求中有一些请求数据量比较大无法一下返回,需要增加loading动画,为了方便控制想在请求的时候增加一个参数isLoading,默认关闭,传真值时开启动画。这便需要拓展axios中增加个性化参数配置。但是如何进行类型的定义呢? 2.操作 如上,在做左边增加了isLoading参数,代 ......
属性 类型 axios

启动vue项目报错——ERROR Error loading vue.config.js: ERROR TypeError: defineConfig is not a function

问题描述 在我引入echarts模块之前是ok的,引入之后就启动失败了; 问题解决 一般情况下,都是该项目的版本与本机cmd里面的版本不对应导致的; 只需要使用这个命令npm upgrade,更新版本,一直yes下去,就能够解决这个问题啦! ......
ERROR defineConfig vue TypeError function

vue3+ts中使用echarts

1. 下载 npm install -S echarts 2.使用 方法一(推荐使用) <div class="echart_box" ref="echartDom"></div> <script setup lang="ts"> import * as echarts from "echarts" ......
echarts vue3 vue ts

ts 中泛型的简单使用

interface ApiResponseData<T> { code: number data: T message: string } 在这段 TypeScript 代码中,T 是一个泛型参数(generic parameter),用于描述 ApiResponseData<T> 的类型。泛型可以 ......
ts

ts的keyof

keyof 是 TypeScript 中的一种类型操作符,用于获取一个类型的所有键(属性名)作为联合类型。它的语法如下: type KeysOfType = keyof ObjectType; 其中: keyof 是 TypeScript 的关键字,用于指定要获取键的类型操作。 ObjectType ......
keyof

2023-10-07 ts定义数组

在 TypeScript 中,可以使用以下方式来定义数组: 使用类型加上方括号 [] 表示数组的类型: let numbers: number[] = [1, 2, 3, 4, 5]; let names: string[] = ["Alice", "Bob", "Charlie"]; 使用泛型 A ......
数组 2023 10 07

i3 config

1 # This file has been auto-generated by i3-config-wizard(1). 2 # It will not be overwritten, so edit it as you like. 3 # 4 # Should you change your k ......
config i3

git config --global core.autocrlf input

我们一般希望远程仓库中的代码为LF,就用: git config --global core.autocrlf input 就ok了。 git config --global core.autocrlf input 这是一个Git的配置命令,它的作用是告诉Git在检出代码时不要自动将行尾转换为CRL ......
autocrlf config global input core

Shrine( Flask SSTI of config )

来自: [WesternCTF2018]shrine 打开是一段源码,这里贴一下: import flask import os app = flask.Flask(__name__) app.config['FLAG'] = os.environ.pop('FLAG') #注册了一个名字为FLAG ......
Shrine config Flask SSTI of

vite_vite.config.js配置代理与websocket代理

export default defineConfig({ server: { proxy: { "/proxy": { target: "http://121.10.140.87", // 线上服务器IP地址 changeOrigin: true, ws: true, rewrite: (path ......
vite vite_vite websocket config js

【踩坑】JS/TS 整数明明没有超过 Number.MAX_VALUE,为啥精度还是丢失了?

代码 function calcKey(props) { return props.reduce((key, prop, index) => { const code = prop[0] * (15 + 1) + prop[1]; console.log(code); console.log(key ......
整数 精度 MAX_VALUE 还是 Number

ts字符串与base64互转

字符串转base64 和 base64转字符串 /** * 字符串转base64 * @param str * @returns */ public static myEncode(str) { // 对字符串进行编码 var encode = encodeURI(str.replace(/\+/g ......
字符串 字符 base 64

Python3 日志打印之logging.config.dictConfig

#函数说明 logging.config.dictConfig(config) dictConfig函数位于logging.config模块,该函数通过字典参数config对logging进行配置。3.2版本新增的函数 ##参数说明 config 字典类型,包含以下key: version - 表示 ......
dictConfig Python3 logging Python config

js/ts 填充表单函数

直接代码 function from(form: string | HTMLFormElement, data: { [key: string]: any }) { let target: Element | null; if (form instanceof Element) { target = ......
表单 函数 js ts

Vite+ts+springboot项目集成2

项目集成 集成element-plus 官网地址: 安装图标库 pnpm install element-plus @element-plus/icons-vue 入口文件main.ts全局安装element-plus,element-plus默认支持语言英语设置为中文 import Element ......
springboot 项目 Vite ts

vscode vim config

keybindings.json // Place your key bindings in this file to override the defaultsauto[] [ // terminal // 切换到terminal终端 { "key": "ctrl+,", "command": " ......
vscode config vim

SpringCloud-Config配置中心搭建保姆级教程

一、分布式配置中⼼ 在使⽤微服务架构开发的项⽬中,每个服务都有⾃⼰的配置⽂件(application.yml),如果将每个服务的配置⽂件直接写在对应的服务中,存在以下问题: 1. 服务开发完成之后,需要打包部署,配置⽂件也会打包在jar⽂件中,不便于项⽬部署之后的配置修改(在源码中修改——重新打包— ......

ts和vue3的结合常见的一些问题(持续更新)

特此注意是vue3,而不是vue2 使用typescript的interface关键词定义一个存数据的数据类型 interface Position { long:number, lnt:number, height: number } const position = ref<Position>( ......
常见 问题 vue3 vue

调度器59—CONFIG_SCHED_DEBUG 的作用

一、使能 CONFIG_SCHED_DEBUG 提供的文件 1. /proc/pid/sched 文件 cat显示统计数据,echo清0,无论echo的是啥。 2. /proc/sys/kernel 下的 sched_min_granularity_nssched_latency_nssched_s ......
CONFIG_SCHED_DEBUG 作用 CONFIG SCHED DEBUG

使用 PackageReference 格式的项目,修改NuGet包默认存储位置与packages.config时一样

默认全局包文件夹的位置。 默认值为 %userprofile%\.nuget\packages (Windows) 或 ~/.nuget/packages (Mac/Linux)。 相对路径可在项目特定的 nuget.config 文件中使用。 此设置由 NUGET_PACKAGES 环境变量替代, ......

前端根据swagger,生成 .ts 映射接口文件

新建 generator.js 文件,写入以下代码 const fs = require('fs') const path = require('path') const parse = require('swagger-parser') const beautify = require('js-b ......
前端 接口 swagger 文件 ts

为动态库编写XX-config.cmake文件

演示动态库结构 . ├─bin │ ├─Debug │ │ CTKCore.dll │ │ CTKPluginFramework.dll │ │ │ └─Release │ CTKCore.dll │ CTKPluginFramework.dll │ ├─cmake │ ctk-config.cma ......
XX-config 文件 动态 config cmake