uniapp bug解决:uniapp文件查找失败:‘uview-ui‘ at main.js:14

在这里插入图片描述

文章目录

  • 报错内容
  • 解决方法
      • `main.js` 文件中 uView 主 JS 库
      • 引入 uView 的全局 `SCSS` 主题文件内容修改
      • 引入 uView 基础样式内容修改
      • 配置` easycom `内容修改


报错内容

10:50:51.795 文件查找失败:'uview-ui' at main.js:14
10:59:39.570 正在差量编译...
10:59:43.213 文件查找失败:'uview-ui' at main.js:14
10:59:43.243 正在差量编译...
10:59:45.464 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:45.464 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:45.464         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:45.464         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\App.vue
10:59:45.464 >> @import 'uview-ui/theme.scss';
10:59:45.464    ^
10:59:45.464 文件查找失败:'uview-ui' at main.js:14
10:59:45.493 正在差量编译...
10:59:45.524 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
10:59:45.524     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
10:59:45.524   errno: -3008,
10:59:45.524   code: 'ENOTFOUND',
10:59:45.524   syscall: 'getaddrinfo',
10:59:45.524   hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
10:59:45.524 }
10:59:46.103 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.103 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.103         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.103         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\App.vue
10:59:46.103 >> @import 'uview-ui/theme.scss';
10:59:46.103    ^
10:59:46.103 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.103 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.103         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.103         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\components\uniapp-zaudio\zaudio.vue
10:59:46.103 >> @import 'uview-ui/theme.scss';
10:59:46.103    ^
10:59:46.103 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.103 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.103         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.103         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\customMotion\index.vue
10:59:46.103 >> @import 'uview-ui/theme.scss';
10:59:46.103    ^
10:59:46.103 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.104         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.104         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\foodReplace\index.vue
10:59:46.104 >> @import 'uview-ui/theme.scss';
10:59:46.104    ^
10:59:46.104 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.104         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.104         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\healthyLife\index.vue
10:59:46.104 >> @import 'uview-ui/theme.scss';
10:59:46.104    ^
10:59:46.104 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.104         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.104         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\healthyLife\text.vue
10:59:46.104 >> @import 'uview-ui/theme.scss';
10:59:46.104    ^
10:59:46.104 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.104         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.104         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\stageInfo\stageInfo.vue
10:59:46.104 >> @import 'uview-ui/theme.scss';
10:59:46.104    ^
10:59:46.104 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.104         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.104         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages2\stageInfo\stageInfotext.vue
10:59:46.104 >> @import 'uview-ui/theme.scss';
10:59:46.104    ^
10:59:46.104 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.104 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.105         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.105         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\breakfastPage\index.vue
10:59:46.105 >> @import 'uview-ui/theme.scss';
10:59:46.105    ^
10:59:46.105 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.105 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.105         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.105         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\checkInSharing\index.vue
10:59:46.105 >> @import 'uview-ui/theme.scss';
10:59:46.105    ^
10:59:46.105 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.105 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.105         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.105         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\dinnerPage\index.vue
10:59:46.105 >> @import 'uview-ui/theme.scss';
10:59:46.105    ^
10:59:46.105 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.105 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.105         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.105         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\drinkPage\index.vue
10:59:46.105 >> @import 'uview-ui/theme.scss';
10:59:46.105    ^
10:59:46.105 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.105 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.105         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.105         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\foodPage\index.vue
10:59:46.105 >> @import 'uview-ui/theme.scss';
10:59:46.105    ^
10:59:46.105 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.105 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.106         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.106         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\lunchPage\index.vue
10:59:46.106 >> @import 'uview-ui/theme.scss';
10:59:46.106    ^
10:59:46.106 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.106 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.106         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.106         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\sleepPage\index.vue
10:59:46.106 >> @import 'uview-ui/theme.scss';
10:59:46.106    ^
10:59:46.106 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.106 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.106         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.106         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\sportPage\index.vue
10:59:46.106 >> @import 'uview-ui/theme.scss';
10:59:46.106    ^
10:59:46.106 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.106 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.106         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.106         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\components\weightPage\index.vue
10:59:46.106 >> @import 'uview-ui/theme.scss';
10:59:46.106    ^
10:59:46.106 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.106 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.106         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.106         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkInDetails\index.vue
10:59:46.106 >> @import 'uview-ui/theme.scss';
10:59:46.107    ^
10:59:46.107 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.107 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.107         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.107         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\checkIn\index.vue
10:59:46.107 >> @import 'uview-ui/theme.scss';
10:59:46.107    ^
10:59:46.107 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.107 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.107         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.107         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\index\index.vue
10:59:46.107 >> @import 'uview-ui/theme.scss';
10:59:46.107    ^
10:59:46.107 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.107 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.107         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.107         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\searchMeals\index.vue
10:59:46.107 >> @import 'uview-ui/theme.scss';
10:59:46.107    ^
10:59:46.107 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.107 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.107         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.107         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\pages\stage\index\index.vue
10:59:46.107 >> @import 'uview-ui/theme.scss';
10:59:46.107    ^
10:59:46.107 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.107 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.107         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.107         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-file-picker\components\uni-file-picker\upload-file.vue
10:59:46.107 >> @import 'uview-ui/theme.scss';
10:59:46.108    ^
10:59:46.108 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.108 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.108         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.108         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-file-picker\components\uni-file-picker\upload-image.vue
10:59:46.108 >> @import 'uview-ui/theme.scss';
10:59:46.108    ^
10:59:46.108 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.108 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.108         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.108         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-forms\components\uni-forms-item\uni-forms-item.vue
10:59:46.108 >> @import 'uview-ui/theme.scss';
10:59:46.108    ^
10:59:46.108 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.108 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.108         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.108         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-forms\components\uni-forms\uni-forms.vue
10:59:46.108 >> @import 'uview-ui/theme.scss';
10:59:46.108    ^
10:59:46.108 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.108 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.108         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.108         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-icons\components\uni-icons\uni-icons.vue
10:59:46.108 >> @import 'uview-ui/theme.scss';
10:59:46.108    ^
10:59:46.108 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.108 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.108         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.108         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-notice-bar\components\uni-notice-bar\uni-notice-bar.vue
10:59:46.109 >> @import 'uview-ui/theme.scss';
10:59:46.109    ^
10:59:46.109 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
10:59:46.109 SassError: File to import not found or unreadable: uview-ui/theme.scss.
10:59:46.109         on line 2 of C:/Users/Administrator/Desktop/uniapp-food/uni.scss
10:59:46.109         from line 51 of C:\Users\Administrator\Desktop\uniapp-food\uni_modules\uni-popup\components\uni-popup\uni-popup.vue
10:59:46.109 >> @import 'uview-ui/theme.scss';
10:59:46.109    ^
10:59:46.109 文件查找失败:'uview-ui' at main.js:14
10:59:46.109 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
10:59:46.109     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
10:59:46.109   errno: -3008,
10:59:46.109   code: 'ENOTFOUND',
10:59:46.109   syscall: 'getaddrinfo',
10:59:46.109   hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
10:59:46.109 }
11:02:59.542 正在差量编译...
11:03:01.289 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
11:03:01.289 SassError: File to import not found or unreadable: uview-ui/index.scss.
11:03:01.289         on line 82 of C:\Users\Administrator\Desktop\uniapp-food\App.vue
11:03:01.289 >> @import "uview-ui/index.scss";
11:03:01.289    ^
11:03:01.289 文件查找失败:'uview-ui' at main.js:14
11:03:01.331 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
11:03:01.331     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
11:03:01.331   errno: -3008,
11:03:01.331   code: 'ENOTFOUND',
11:03:01.331   syscall: 'getaddrinfo',
11:03:01.331   hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
11:03:01.331 }
11:03:32.685 正在差量编译...
11:03:33.795 文件查找失败:'uview-ui' at main.js:14

解决方法

改成具体文件路径即可
整合以上内容到一个完整的配置步骤中,以便在 UniApp 项目中引入和配置 uView UI 库:

main.js 文件中 uView 主 JS 库

在项目根目录中的 main.js 文件中引入并使用 uView 的 JS 库。

// main.js
import Vue from 'vue';
import uView from '@/uni_modules/uview-ui';Vue.use(uView);

引入 uView 的全局 SCSS 主题文件内容修改

在项目根目录的 uni.scss 文件中引入 uView 的 SCSS 主题文件。

/* uni.scss */
@import '@/uni_modules/uview-ui/theme.scss';

引入 uView 基础样式内容修改

App.vue 中的 <style> 标签中的首行位置引入 uView 的基础样式,确保给 <style> 标签加入 lang="scss" 属性。

<!-- App.vue -->
<style lang="scss">/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */@import "@/uni_modules/uview-ui/index.scss";
</style>

配置easycom内容修改

在项目根目录的 pages.json 文件中配置 easycom 组件模式,确保 uView 的组件可以在项目中被正确引用。

// pages.json
{"easycom": {"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"},// 此为本身已有的内容"pages": [// ......]
}

全部改好就正常了
在这里插入图片描述

您好,我是肥晨。
欢迎关注我获取前端学习资源,日常分享技术变革,生存法则;行业内幕,洞察先机。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/49665.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

git的一些使用技巧(git fetch 和 git pull的区别,git merge 和 git rebase的区别)

最近闲来无聊&#xff0c;虽然会使用git操作&#xff0c;但是 git fetch 和 git pull 的区别&#xff0c;git merge 和 git rebase的区别只是一知半解&#xff0c;稍微研究一下&#xff1b; git fetch 和 git pull 的区别 git fetch git fetch 是将远程仓库中的改动拉到本地…

ARM架构(三)——AMBA和总线②

本文参考 ARM文档“Introduction to AMBA AXI4 - Arm Developer” 手册可以在ARM官方文档中下载ARM.con&#xff0c;也可以访问我的百度网盘资源 提取码&#xff1a;1234 目录 1. AXI协议概述1.1 多主系统中的AXI1.2 AXI通道1.3 AXI的主要特点 2. 通道传输和事务&#xff08; …

基础IO(重定向与缓冲区)

一、重定向 1、stat() 与 read() 函数 &#xff08;1&#xff09;stat() 函数 path&#xff1a;文件路径 buf&#xff1a;输出型参数&#xff0c;用于返回文件的各种属性。 函数成功返回 0 &#xff0c;失败返回 -1 &#xff08;2&#xff09;read() 函数 fd&#xff1a;文…

使用minio cllient(mc)完成不同服务器的minio的数据迁移和mc基本操作

minio client 前言使用1.拉取minio client 镜像2.部署mc容器3.添加云存储服务器4.迁移数据1.全量迁移2.只迁移某个桶3.覆盖重名文件 5.其他操作1.列出所有alias、列出列出桶中的文件和目录1.1.列出所有alias1.2.列出桶中的文件和目录 2.创建桶、删除桶2.1.创建桶2.2.删除桶 3.删…

Android APK混淆处理方案分析

这里写目录标题 一、前言1.1 相关工具二、Apk 分析2.1 apk 解压文件2.2 apk 签名信息2.3 apk AndroidManifest.xml2.4 apk code三、Apk 处理3.1 添加垃圾文件3.2 AndroidManifest.xml 处理3.3 dex 混淆处理3.4 zipalign对齐3.5 apk 重新签名3.6 apk 安装测试四、总结一、前言 提…

顺序表和单链表的经典算法题

目录 前言 一、基础思想&#xff08;数组&#xff09; 1. 移除元素 2.删除有序元素的重复项 3.合并两个有序数组 二、单链表算法 1.移除链表元素 2.翻转链表 3.合并两个有序的链表 前言 Hello,小伙伴们&#xff0c;今天我们来做一个往期知识的回顾&#xff0c;今天我将…

C++ 设计模式(五)——状态模式

状态模式 序言理解源码 序言 设计模式只是一个抽象的设计模式方法&#xff0c;并不是一个固定使用的搭配&#xff0c;就算是普通switch语句&#xff0c;Map&#xff0c;乃至状态机都是状态模式的其中一种实现方法 状态模式看起来好像和策略模式差不多&#xff0c;主要是其的侧…

【vluhub】log4j注入漏洞 CVE-2021-44228

LOG4介绍 是一个用Java编写的可靠&#xff0c;快速和灵活的日志框架&#xff08;API&#xff09;&#xff0c;它在Apache软件许可下发布 log4j存在远程代码执行漏洞、受影响版本2.x 部署环境 攻击机环境&#xff1a;192.168.3.180 kail环境&#xff1a;192.168.203.12【NAT…

深入理解 OSPF NSSA “P-bit”

** 注&#xff1a;机翻&#xff0c;未校对。** OSPF NSSA P-bit Explained OSPF Forward Address Filtering OSPF 转发地址过滤 In this lesson we’ll take a closer look at the OSPF NSSA “P-bit”. When we redistribute something into an OSPF NSSA area then these …

数据开发/数仓工程师上手指南(一)数仓概念总览

前言 笔者毕业最开始从事的就是大数据开发和数据仓库建设工作&#xff0c;途中曾担任过人工智能工程师和计算机视觉工程师&#xff0c;没想到最后兜兜转转还是回到了最原本的工作数据开发工程师。但很少有写关于本职工作的技术内容输出。 之前笔者撰文内容大部分都是关于算法…

C++入门基础:C++中的循环语句

循环语句是编程语言中用来重复执行一段代码直到满足特定条件的一种控制结构。它们对于处理需要重复任务的场景非常有用&#xff0c;比如遍历数组、累加数值、重复执行某项操作直到满足条件等。 但是在使用循环语句的时候需要注意下哈&#xff0c;有时候一不小心会构成死循环或者…

Ubuntu上安装anaconda创建虚拟环境(各种踩坑版)

之前都是在Windows桌面版进行深度学习的环境部署及训练&#xff0c;今天尝试了一下在Ubuntu上进行环境部署&#xff0c;踩了不少坑&#xff0c;提供一些解决办法给大家避雷。 目录 一、下载和安装anaconda 1. 下载 2. 安装 二、创建虚拟环境 一、下载和安装anaconda 1. …

uniapp入门超详细教程:如何从零开始搭建项目

目录 一、介绍 二、环境搭建 2.1.需要下载的软件 2.1.1 HBuilderX 2.1.2 下载微信开发者工具 2.2 创建uniapp项目 2.2.1 新建项目 2.2.2 项目基本结构 2.2.3 在微信开发者工具上运行 2.2.4 发布微信小程序 三、pages.json 页面路由 四、组件 4.1 视图容器 4.1.1 v…

RabbitMQ入门详解

前言 本篇文章将详细介绍rabbitmq的基本概念知识&#xff0c;以及rabbitmq各个工作模式在springboot中如何使用。 文章目录 介绍 简介 RabbitMQ 核心 生产者与消费者 Exchange Queue 工作模式 简单模式 工作队列模式 发布订阅模式 路由模式 主题模式 SpringBoot中…

扭蛋机潮玩小程序搭建,扭蛋机行业的创新

在当下潮玩市场中&#xff0c;扭蛋机具有盲盒的未知性和惊喜体验感&#xff0c;商品丰富&#xff0c;并且价格相对低廉&#xff0c;获得了极高的人气。年轻人开始对扭蛋机逐渐“上头”&#xff0c;为了扭到喜欢的商品不断地进行复购下单&#xff0c;在这场随机性的扭蛋游戏中&a…

【故障排查】Docker启动Nacos报错:No DataSource set 问题解决

Nacos报错内容 Nacos Server did not start because dumpservice bean construction failure : No DataSource set原因分析 Nacos 配置的是单机模式&#xff0c;使用mysql 进行存储配置文件&#xff0c;Nacos的启动脚本已经配置了MySQL的连接方式&#xff0c;根据错误提示&a…

Window下安装Zookeeper

一、下载 地址&#xff1a;https://archive.apache.org/dist/zookeeper/zookeeper-3.5.6/ 解压&#xff1a;非中文、没有空格目录下 新建data目录&#xff0c;用于存放数据文件 二、配置 进入conf目录&#xff0c;复制zoo_sample.cfg 为zoo.cfg 打开zoo.cfg 修改dataDir&…

江苏科技大学24计算机考研数据速览,有专硕复试线大幅下降67分!

江苏科技大学&#xff08;Jiangsu University of Science and Technology&#xff09;&#xff0c;坐落在江苏省镇江市&#xff0c;是江苏省重点建设高校&#xff0c;江苏省人民政府与中国船舶集团有限公司共建高校&#xff0c;国家国防科技工业局与江苏省人民政府共建高校 &am…

层次分析模型

一、算法简介 决策问题&#xff1a;面临多种方案&#xff0c;需要根据一定的标准选择某一种方案 归一化处理(让指标在同一数量级&#xff0c;且保证在同一指标下其差距不变)&#xff1a; 给指标加上权重&#xff08;加权&#xff09; 科学地设定权重&#xff1f; 二、python…

2. 深度学习的项目流程(批量化打包数据、构建模型、训练模型、波士顿房价预测、激活函数、多层感知机)

深度学习流程 1. 深度学习基本流程1.1 流程图1.2 代码实现1.3 基本概念 2. 深度学习项目流程2.1 批量化打包数据2.2 构建模型2.3 训练模型&#xff08;1&#xff09;筹备训练&#xff08;2&#xff09;开始训练 2.4 模型推理 3. 深度学习实现波士顿房价预测3.1 数据读取、切分、…