cmake_build_type cmake build type

整理spring-web里支持的文件以及对应的Content-Type

最近在弄文件上传、下载、在线预览时经常需要设置请求标头或者响应标头的Content-Type 属性。所以研究了一下spring支持哪些Content-Type,通过研究MediaTypeFactory.getMediaType的源码,可以得知spring是将支持的Content-Type 维护在/o... ......

执行npm run dev时,报错10% building 2/5 modules 3 active node,如何解决?

报错如下: 原因:版本问题,为了不替换node版本使用如下方法 在package.json文件下 将 "dev": " vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-ser ......
building modules active node npm

[Go] 理解 Go 的 unintptr、unsafe.Pointer、*type

# 理解 Go 的 unintptr、unsafe.Pointer、*type ## 概念 - `*type`: 用于传递对象地址, 无法进行指针运算 - `unsafe.Pointer`: 通用指针, 用于表示任意类型的指针, 无法进行指针运算, 无法读取存储的值,可作为对象引用 - 任意类型的指 ......
unintptr Pointer unsafe Go type

CMake个人理解和使用

### 前言 CMake是一个构建工具,通过它可以很容易创建跨平台的项目。通常使用它构建项目要分两步,通过源代码生成工程文件,通过工程文件构建目标产物(可能是动态库,静态库,也可能是可执行程序)。使用CMake的一个主要优势是在多平台或者多人协作的项目中,开发人员可以根据自己的喜好来使选择IDE,不 ......
CMake 个人

CMake

> 转载说明:以下内容来自[从零开始详细介绍CMake](https://www.bilibili.com/video/BV1vR4y1u77h/?p=2&spm_id_from=pageDriver&vd_source=98d46c524d240bd89f118ad90be17aef) # CMa ......
CMake

CMakeLists --- 指定安装目录 CMAKE_INSTALL_PREFIX

cmake指定make install时的安装目录:通过设置 CMAKE_INSTALL_PREFIX 的值来控制。 有两种方法: 1.在执行cmake时,指定安装目录: cmake -DCMAKE_INSTALL_PREFIX=/xxx/x .. 2.直接在CMakeLists.txt中设置 se ......

vscode+cmake c++ hello world!

# 1. 新建一个测试目录hello及一些必要文件 ``` D:\HELLO\HELLOCPP │ CMakeLists.txt └─ main.cpp ``` ## CMakeLists.txt ```CMakeLists.txt # 工程名 project(Hello) # 生成目标 add_e ......
vscode cmake hello world

使用Postman的Get请求遇到:"type": "parsing_exception","reason": "Unknown key for a START_OBJECT in [mappings].",的问题

**错误如图** ![](https://img2023.cnblogs.com/blog/3161806/202306/3161806-20230616140011892-1209344862.png) **原因** postman自身的的bug问题。body里面写了json参数,结果postma ......

Python - typing模块之Optional类

总结 可选参数:具有默认值的参数,不需要在其类型批注上使用Optional,因为默认值的类型已经给定了。 可选类型:Optional,作用是让编译器识别到该参数有一个类型提示,可以使指定类型,也可以是None,且参数是可选非必传的。Optional[int] 等价于 Union[int, None] ......
模块 Optional Python typing

Vite执行build操作时报错:Invalid value for option "output.dir" - you must set either "output.file"

Vite对项目进行build(库)打包时报错,具体信息如下: 致错配置代码: export default defineConfig({ build: { lib: { // ... }, rollupOptions: { output: [ { file: 'lib/main.umd.min.js ......
quot output 时报 Invalid either

python: enforcing type check on function using decorator

def typeassert(*ty_args, **ty_kwargs): """ 利用装饰器对函数参数强制性类型检查 enforcing type check on function using decorator :param ty_args: :param ty_kwargs: :retur ......
enforcing decorator function python check

解决Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“

安装Python后,安装扩展包的过程中发生了错误,提示Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.c ......
Microsoft required greater Visual Build

node Solve – To load an ES module, set “type”: “module” in the package.json or use the .mjs extension

https://codevoweb.com/solve-to-load-an-es-module-set-type-module-in-the-package-json-or-use-the-mjs-extension/ 解决 – 要加载 ES 模块,请在 package.json 中设置 “typ ......
module extension the package Solve

FTP上传错误----“200 Type set to I”

用Filezilla Server做的FTP服务器,没有使用客户端上传东西,直接用win10的文件管理器访问上传文件,发现有的文件上传时会提示:”200 Type set to I“,(如下图所示) 一阵猛上网搜索,原以为是由于“主动模式”(Active)和“被动模式”(PASV)的模式,使用客户端 ......
错误 Type FTP 200 set

npm install报错node-sass@4.14.1 postinstall: `node scripts/build.js`

error node-sass@4.14.1 postinstall: node scripts/build.js 解决方法: npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass npm install ......
node postinstall node-sass install scripts

关于xfs文件系统-在操作系统中遇到两个uuid一样的-挂载报错-wrong fs type, bad option, bad superblock on /dev/nvme2n1, missing codepage or helper program, or other error

当操作系统中,出现了两个uuid一样的文件系统(笔者这里是xfs),那么默认就只能挂载成功一个 [root@qq-5201351 ~]# blkid |grep xfs |grep 1ea9e784-0692-403c-bed1-bf34a5a86a57 /dev/nvme1n1: UUID="1e ......
系统 superblock bad codepage 两个

构建简单CMake及vscode调试

main.cpp #include <iostream> int main() { int num_a, num_b; num_a = 10; num_b = 20; std::cout << "num_a = " << num_a << std::endl; std::cout << "num_b ......
vscode CMake

Cmake 基础教程

介绍 CMake是个一个开源的跨平台自动化建构系统,用来管理软件建置的程序,并不依赖于某特定编译器,并可支持多层目录、多个应用程序与多个库。 它用配置文件控制建构过程(build process)的方式和Unix的make相似,只是CMake的配置文件取名为CMakeLists.txt。CMake并 ......
基础 教程 Cmake

docker-compose 如何每次都重新build镜像

要求 docker-compose 每次重新构建镜像,可以使用 --build 标志来强制重新构建镜像。你可以在运行 docker-compose up 或 docker-compose build 命令时使用该标志。例如: Copy docker-compose up --build 这将使用 d ......
docker-compose 镜像 compose docker build

ERROR: Failed building wheel for mysqlclient Running setup.py clean for mysqlclient Failed to build mysqlclient

It seems that there is an error while trying to install the mysqlclient package and it's failing to build the wheel. The error message indicates that ......
mysqlclient Failed for building Running

Cmake之 target_include_directories

target_include_directories 是 CMake 中用于指定目标(target)的头文件搜索路径的命令。 它的语法如下: target_include_directories(target [SYSTEM] [BEFORE] <INTERFACE|PUBLIC|PRIVATE> ......

Incomplete types and shared_ptr / unique_ptr

If the object being deleted has incomplete class type at the point of deletion and the complete class has a non-trivial destructor or a deallocation f ......
Incomplete shared_ptr unique_ptr ptr shared

maven-compiler-plugin build-helper-maven-plugin Maven-assembly-plugin

#### 三个插件都是是用干啥的 #### maven-compiler-plugin * 进行源代码的编译 #### build-helper-maven-plugin * 项目中添加额外的资源、源代码、构建输出目录和依赖项等 #### Maven-assembly-plugin * 生成可执行 ......

C# Type传参转换成泛型T

``` public class Test{ public void Export() { } public void ExportByClassName(string typename1,string typename2) { Type t1 = Type.GetType(typename1); ......
Type

CS5366电路原理图|Type-C转HDMI2.0 4K60+USB3.0+PD3.1高集成度视频转换芯片方案电路

CS5366内部集成了PD3.0及DSC decoder,应用Type-C转HDMI2.0的显示协议转换芯片, 简介: CS5366系列提供了USB Type-C(DisplayPort Alternate Mode)到HDMI转换器的单芯片解决方案,带有电源传输。CS5366系列支持一个USB T ......
电路 集成度 芯片 原理 方案

cmake设置gcc将shared library 改为生成 executeable

## 前文 - ubuntu下, 同一份代码, 使用 `gcc` 和 `clang` 编译结果不相同。 gcc 编译结果, 生成的程序为 `type` 为 shared libary, 而 `clang` 编译生成的程序的type 为 `executeable`. ## 解决方案 - 为`cmake ......
executeable library shared cmake gcc

CMake学习

# 参考 [前言 - 《CMake菜谱(CMake Cookbook中文版)》 - 书栈网 · BookStack](https://www.bookstack.cn/read/CMake-Cookbook/content-preface-preface-chinese.md) [The Archi ......
CMake

[GPT] Unable to negotiate with xx.xx.xx.xx port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

这个错误通常发生在 SSH 客户端无法找到与 SSH服务器 匹配的主机密钥类型时。 这可能是因为SSH服务器配置为使用SSH客户端不支持的主机密钥类型。 要解决此问题,您需要将缺少的主机密钥类型添加到SSH客户端的配置文件中。以下是实现步骤: 使用文本编辑器打开SSH客户端配置文件。文件位置可能因操 ......
xx negotiate ssh matching ssh-rsa

[GPT] php 报错 Unsupported operand types

Unsupported operand types 这个错误通常发生在使用了不支持的操作数类型时。例如,当您尝试对两个不同类型的值执行算术运算时,就会出现这个错误。 例如,如果您尝试将字符串与数字相加,则会出现此错误: $number = 10; $string = "20"; $result = ......
Unsupported operand types GPT php

vue报错Invalid VNode type: undefined

# 报错 项目启动后,部分内容没有显示出来。打开console后,显示` [Vue warn]: Invalid VNode type: undefined (undefined) ` ![image](https://img2023.cnblogs.com/blog/1553866/202306/ ......
undefined Invalid VNode type vue