#、##、#@在#define中的用法

  • Post author:
  • Post category:其他

有如下C++代码: #include <iostream> using namespace std; #define A(exp) cout << "I am "#exp << endl; #define B(exp) cout << sz##exp << endl; #define C(exp) cout << #@exp …

继续阅读 #、##、#@在#define中的用法

Spring框架系列之构造方法BeanDefinition扫描原理03

  • Post author:
  • Post category:其他

上一篇幅我们讲到 ConfigurationClassPostProcessor的postProcessBeanDefinitionRegistry方法,这个方法扫描得到所有的BeanDefinition,那具体是怎么扫描得到所有BeanDefinition的呢?postProcessBeanDefinitionRegistry调用了一个核心方法:processConfigBeanDefiniti…

继续阅读 Spring框架系列之构造方法BeanDefinition扫描原理03

Load error: undefined path variables 记录一次IDEA崩溃

  • Post author:
  • Post category:其他

记录一次IDEA崩溃 代码写着写着IDEA 内存突然全满了 最后的解决办法 代码写着写着IDEA 内存突然全满了 重启过idea好几次,还是不行,最终网上寻求解决方案。 一开始以为是idea内存分配太小了,然后修改idea64.exe.vmoptions 配置文件。 修改过后重启还是没生效,内存一下跳到1536M 。 最后的解决办法 建议删除之前先打一个压缩包备份下… 删除这个文件夹,让idea重…

继续阅读 Load error: undefined path variables 记录一次IDEA崩溃

【记录】vue3+vite+ts ReferenceError: process is not defined

  • Post author:
  • Post category:vue

问题描述:在用process.env区分环境时报错process is not defined 解决办法:在vite.vonfig.js中加入以下配置重启项目即可 export default defineConfig({ // ... define: { 'process.env': { VUE_APP_BASE_URL: '/api', // 内容自定义,根据项目需求 VUE_APP_UCS_…

继续阅读 【记录】vue3+vite+ts ReferenceError: process is not defined

【ffmpeg】编译时报错:error: undefined reference to `av…

  • Post author:
  • Post category:其他

【目录】郭老二博文之:图像视频汇总 1、问题描述 昨天使用ffmpeg库编译demo一切正常,今天再次链接ffmpeg库时报了一堆错误: error: undefined reference to `av_frame_alloc()' error: undefined reference to `avio_close(AVIOContext*)' error: undefined referenc…

继续阅读 【ffmpeg】编译时报错:error: undefined reference to `av…

解决process.env值为undefined

  • Post author:
  • Post category:其他

检查是否安装依赖process模块,可以使用npm install process命令 检查创建的.env.文件名是否在根目录下 检查创建的配置文件里属性名是否以VUE_APP_XXX,例如VUE_APP_JIEKOU 注意配置文件里的属性值是string类型 检查使用属性是否写为process.env.属性名,例如process.env.VUE_APP_JIEKOU 如果以上都没有问题,需要执行…

继续阅读 解决process.env值为undefined

EF之CodeFirst代码先行

  • Post author:
  • Post category:其他

为了支持以设计为中心的开发流程,EF还更多地支持以代码为中心 (code-centric) ,我们称为代码优先的开发,代码优先的开发支持更加优美的开发流程,它允许你 在不使用设计器或者定义一个 XML 映射文件的情况下进行开发。 ·允许编写简单的模型对象POCO (plain old classes),而不需要基类。 ·通过"约定优于配置",使得数据库持久层不需要任何的配置 ·也可以覆盖"约定优于…

继续阅读 EF之CodeFirst代码先行

记RabbitMQ使用报错Error creating bean with name ‘rabbitConnectionFactory‘ defined in class path resource

  • Post author:
  • Post category:其他

1、报错如下: Error creating bean with name 'rabbitConnectionFactory' defined in class path resource [org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration$RabbitConnectionFactoryCreator.class…

继续阅读 记RabbitMQ使用报错Error creating bean with name ‘rabbitConnectionFactory‘ defined in class path resource