当前位置: 首页 > news >正文

spring boot + vue 搭建环境

参考文档:https://blog.csdn.net/weixin_44215249/article/details/117376417?fromshare=blogdetail&sharetype=blogdetail&sharerId=117376417&sharerefer=PC&sharesource=qxpapt&sharefrom=from_link.

spring boot + vue 搭建环境

  • 一、浏览器
  • 二、jdk8安装及配置
  • 三、maven安装及配置
    • 下载安装maven
    • 配置maven环境变量
    • 配置本地仓库
    • 配置阿里云的镜像
    • Q&A
    • 参考文档
  • 四、 IDEA的安装及配置
    • 下载安装IDEA
  • 五、MySQL的安装及配置
    • 下载安装MySQL
    • 验证是否安装成功
    • 参考文档
  • 六、node.js安装及配置
    • 下载node.js
    • 环境变量配置
    • 测试环境变量是否配置成功
    • 安装淘宝镜像
    • Q&A
  • 七、git安装及配置
    • git的下载
    • 参考文档

软件软件配置版本号
jdkjdk-8u181(1.8.0_181)(总是提示版本太低,升级之后的版本是1.8.0_411)
mavenapache-maven-3.8.8
IDEAideaIU-2023.3.5
MySQLmysql Ver 8.0.36
nodejs长期支持版本: 18.19.1-x64.msi

一、浏览器

比较推荐chrome浏览器,下载之后可以做这些操作:设置搜索引擎为Bing,设置下载地址,安装自己需要的扩展插件,导入书签(如果有)
谷歌浏览器下载地址: https://www.google.cn/chrome/index.html.

二、jdk8安装及配置

参考以下博客:APP测试环境部署:https://blog.csdn.net/qxpapt/article/details/136067615?fromshare=blogdetail&sharetype=blogdetail&sharerId=136067615&sharerefer=PC&sharesource=qxpapt&sharefrom=from_link.

三、maven安装及配置

maven下载地址: https://maven.apache.org/download.cgi.

下载安装maven

1、选择适合的maven下载 ,我下载的是apache-maven-3.8.8 版本
注意:Maven的版本要老于IDEA的版本,否则导入Maven工程时会报错!
在这里插入图片描述

Binary是可执行版本,已经编译好可以直接使用。
Source是源代码版本,需要自己编译成可执行软件才可使用。
tar.gz格式的文件比zip文件小很多,用于unix操作系统。
zip格式用于Windows操作系统

2、下载解压缩安装时必须要解压到一个没有中文的没有空格的文件夹内(很多带中文路径会报错)
在这里插入图片描述

配置maven环境变量

1、环境变量配置
点击【此电脑】-单击右键-【属性】-【高级系统设置】-【环境变量】

变量名变量值
M2_HOMEF:\Maven\apache-maven-3.8.8
Path%M2_HOME%\bin或F:\Maven\apache-maven-3.8.8\bin

a.在系统变量中添加新的变量:进入控制面板》系统》高级系统设置》环境变量(Window11)》新建系统变量》变量值是Maven的解压地址
在这里插入图片描述
b.在path中添加maven的bin目录,就是你的Maven安装目录下的bin文件夹的绝对路径,便于执行命令,编辑完后点击确定
在这里插入图片描述
2、检验环境是否配置成功
win+R运行cmd,在控制台敲入 mvn -v 命令,出现下列类似内容时,说明配置成功。
在这里插入图片描述

配置本地仓库

本地仓库存储着我们每个项目有可能用到的插件和 jar 包, Maven安装成功后会在C盘下面有个默认的本地仓库: 它的默认地址是 C:\Users\用户名.m2(eg:${user.home}/.m2/repository)找到 setings.xml 配置文件,配置其其他位置的本地仓库:添加: < localRepository >xxx < /localRepository>即可。

1、在Maven解压路径同层级创建仓库目录repo,用作maven的本地库,也可以创建在其他地方,创建在Maven下是方便管理
在这里插入图片描述
2、配置使用本地仓库,找到F:\Maven\apache-maven-3.8.8\conf目录下的settings.xml文件(注意你自己的解压安装路径)
在这里插入图片描述
找到节点localRepository,在注释外添加自己仓库的位置,这里我添加的是:

<localRepository>F:\Maven\repo</localRepository>

localRepository节点用于配置本地仓库,本地仓库其实起到了一个缓存的作用,当我们从maven中获取jar包的时候,maven首先会在本地仓库中查找,如果本地仓库有则返回;如果没有则从远程仓库中获取包,并在本地库中保存。此外,我们在maven项目中运行mvn install,项目将会自动打包并安装到本地仓库中。

在这里插入图片描述

配置阿里云的镜像

1、在settings.xml配置文件中找到mirrors节点。
2、添加如下配置
国外的服务器下载jar包很慢所以我们改为阿里云服务器,此镜像为阿里云仓库镜像(该镜像有多个,可以选择适合自己的)
注意:要添加在和两个标签之间,其它配置同理。虽然mirrors可以配置多个子节点,但是它只会使用其中的一个节点,即默认情况下配置多个mirror的情况下,只有第一个生效,只有当前一个mirror无法连接的时候,才会去找后一个。

   <!--阿里云仓库 -->
<mirrors><mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共仓库</name><url>https://maven.aliyun.com/repository/public</url></mirror>
</mirrors>

在这里插入图片描述
3、下载本地仓库缺省文件
win+R运行cmd,输入mvn help:system测试,配置成功则会出现下图情况,下载的时间可能会有些长,耐心等待一下,下载完成后本地仓库中会出现一些文件
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Q&A

1、报错信息 这个应该是< localRepository >xxx < /localRepository>路径写错(一定要仔细检查)
在这里插入图片描述
在这里插入图片描述
2、 mirrors 节点需要一一对应起来
可以用记事本打开这个配置文件,查看报错信息,定位代码是第几行
在这里插入图片描述

参考文档

Maven的安装与配置(设置本地Maven仓库、IDEA配置Maven)
https://blog.csdn.net/hanjmm/article/details/126108846.
mvn help:system报错总结:
https://blog.csdn.net/qq_47994979/article/details/118249347.
spring boot + vue 搭建开发环境
https://blog.csdn.net/weixin_44215249/article/details/117376417.

我的settings.xml文件配置如下:

<?xml version="1.0" encoding="UTF-8"?><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
--><!--| This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user,|                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in|                 ${maven.conf}/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"><!-- localRepository| The path to the local repository maven will use to store artifacts.|| Default: ${user.home}/.m2/repository<localRepository>/path/to/local/repo</localRepository>--><localRepository>F:\Maven\repo</localRepository><!-- interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are|       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--></servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.|--><!-- mirrors><mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror> </mirror> --><mirror><id>maven-default-http-blocker</id><mirrorOf>external:http:*</mirrorOf><name>Pseudo repository to mirror external repositories initially using HTTP.</name><url>http://0.0.0.0/</url><blocked>true</blocked></mirror><!--阿里云仓库 -->
<mirrors><mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共仓库</name><url>https://maven.aliyun.com/repository/public</url></mirror>
</mirrors><!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>||   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>--></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
</settings>

四、 IDEA的安装及配置

下载安装IDEA

下载地址:https://www.jetbrains.com/idea/download/?section=windows#section=windows.
选择 Ultimate 版本进行下载安装,Community 版本为社区版,免费,只支持部分功能(部分通过文章链接进官网下载该软件,可能安装了汉化插件)
在这里插入图片描述
在这里插入图片描述
下载完后在本地找到该文件,双击运行 idea 安装程序
在这里插入图片描述
修改安装路径,我这里修改到了F盘
在这里插入图片描述
勾选创建卓main快捷方式
在这里插入图片描述
开始安装
在这里插入图片描述
在这里插入图片描述
安装成功进入的界面
在这里插入图片描述
选择New Project这里选择创建一个空的项目名为Server-side,最后点击创建即可
在这里插入图片描述
成功创建一个project
在这里插入图片描述

五、MySQL的安装及配置

下载安装MySQL

官网下载地址:https://www.mysql.com/downloads/.
按下图顺序点击进入下载页面
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
注意:这里MSI Installe有两个,第一个(大小2.4M)是通过联网在线安装,会在线下载安装包;第二个(大小437.3M)是离线安装。这里选择第二个(包含32位和64位安装包),下载到本地后进行安装。
在这里插入图片描述
在这里插入图片描述
双击下载的安装包,开始安装
在这里插入图片描述
选择Service only,点击Next
在这里插入图片描述
点击Execute,检测需要的安装,检测完毕后,接着点Next
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
密码验证方式(Authentication Method)【重要】
第一个是强密码校验,mysql推荐使用最新的数据库和相关客户端,MySQL8换了加密插件,所以如果选第一种方式,很可能导致你的navicat等客户端连不上mysql8;所以一定要选第二个(下图红框的地方),选完后点击next
在这里插入图片描述
设置密码,需要牢记,因为后面要用这个密码连接数据库,用户名为root
输完密码后,点击next继续。
在这里插入图片描述
在这里插入图片描述
服务器文件权限(Server File Permissions),选择第一个
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

验证是否安装成功

1、使用管理员身份打开cmd命令窗口,点击【开始】菜单,在搜索区域输入“命令提示符”,然后点击【以管理员身份运行】
2、在电脑中找到安装好的MySQL的bin文件目录 ,我的安装目录是:C:\Program Files\MySQL\MySQL Server 8.0\bin
3、在命令提示符中先输入cd C:\Program Files\MySQL\MySQL Server 8.0\bin 打开目录,然后输入mysql -h localhost -u root -p 登录数据库,再输入数据库密码,登录成功查看信息。
在这里插入图片描述
输入 status 命令可以查看 MySQL的 版本信息,说明安装成功
在这里插入图片描述

参考文档

安装教程:https://blog.csdn.net/weixin_39289696/article/details/128850498.

六、node.js安装及配置

下载node.js

1、选择对应你系统的Node.js版本,这里我选择的是Windows系统、64位,node.js下载地址:https://nodejs.cn/download/.
在这里插入图片描述
2、安装程序
下载完成后,双击安装包,开始安装Node.js,直接点击【Next】
在这里插入图片描述
在这里插入图片描述
直接点击【Next】按钮,可根据个人需求修改安装路径,我一般不会将这些软件放在C盘,以免造成卡顿
在这里插入图片描述
可根据自身需求进行,此处我选择默认安装,继续点击【Next】按钮
在这里插入图片描述
直接点击【Next】按钮
在这里插入图片描述
点击【Install】按钮进行安装
在这里插入图片描述
安装完毕,点击【Finish】按钮
在这里插入图片描述
3、测试是否安装成功
按下【win+R】键,输入cmd,打开cmd窗口

//命令行输入
node -v     // 显示node.js版本npm -v      // 显示npm版本//--成功显示版本说明安装成功

在这里插入图片描述

环境变量配置

1、创建文件夹
找到刚刚nodejs的安装目录,在安装目录下新建两个文件夹【node_global】和【node_cache】
在这里插入图片描述
创建完毕后,使用管理员身份打开cmd命令窗口,点击【开始】菜单,在搜索区域输入“命令提示符”,然后点击【以管理员身份运行】
在这里插入图片描述
在命令行输入以下命令

//npm config set prefix “nodejs的安装路径\node_global” (复制你刚刚创建的“node_global”文件夹路径)
npm config set prefix "F:\nodejs\node_global"
//npm config set cache “nodejs的安装路径\node_cache”  (复制你刚刚创建的“node_cache”文件夹路径)
npm config set cache "F:\nodejs\node_cache"

在这里插入图片描述
2、配置环境变量
环境变量参数如下:

变量名变量值
NODE_PATHF:\nodejs\node_global\node_modules
Path(系统变量)%NODE_PATH%
Path(用户变量)F:\nodejs\node_global

【此电脑】-单击右键-【属性】-【高级系统设置】-【环境变量】-系统变量-新建
在这里插入图片描述

添加变量名为NODE_PATH的系统变量,查看【nodejs的安装路径\node_global】下是否多出【node_modules】的文件夹(我的路径是F:\nodejs\node_global)。 如果输入变量值之后没有自动创建【node_modules】文件夹,就在【node_global】下手动创建一个【node_modules】文件夹,再复制你创建的【node_modules】文件夹的路径地址到变量值
在这里插入图片描述
在这里插入图片描述
在【系统变量】中选择【Path】点击【编辑】-【新建】添加【%NODE_PATH%】,随后一直点击【确定】
在这里插入图片描述
在【用户变量】选择【Path】点击【编辑】
在这里插入图片描述
将默认的 C 盘下【 AppData\Roaming\npm 】修改成 【node_global】的路径,点击确定
在这里插入图片描述
在这里插入图片描述

测试环境变量是否配置成功

配置完成后,使用管理员身份打开cmd命令窗口(以下所有命令窗口都是管理员身份打开),点击【开始】菜单,在搜索区域输入“命令提示符”,然后点击【以管理员身份运行】,全局安装一个最常用的 express(npm install express -g) 模块进行测试

npm install express -g   // -g代表全局安装
/*更新npm*/
npm install -g npm

出现以下界面即为配置成功
在这里插入图片描述

Tips:如果出现报错,请将报错信息百度一下,通过报错排查问题,是最快的解决路径。(因为我每次都不会看报错信息,只是百度命令导致不好定位问题,找到解决办法)

安装好的npm、express会出现在【node_global】下的【node_modules】文件夹里
在这里插入图片描述

安装淘宝镜像

以管理员身份在命令窗口运行以下命令:

npm config set registry https://registry.npm.taobao.org
/*npm是node官方的包管理器 查看是否安装成功*/
npm config get registry

为什么安装淘宝镜像? 它通过缓存和镜像npm的公开仓库来提供更快的下载速度。
当你在项目中配置了淘宝镜像后,所有的npm包都将从镜像站点下载,而不是从原始的npm仓库下载。 这大大提高了下载速度,特别是在中国地区。
要使用淘宝镜像,你需要在npm配置中设置registry为淘宝提供的镜像地址

安装成功如下图所示
在这里插入图片描述

Q&A

npm install express -g 总是报错 // -g代表全局安装总是报错
在这里插入图片描述
1、没有使用管理员身份运行cmd窗口
未使用管理员身份运行cmd报错,如下图:
在这里插入图片描述
2、修改一下【node_global】和【node_cache]的权限
修改【node_global】和【node_cache]的权限, 鼠标右击【node_global】的文件夹,点击【属性】,再点击【安全】,再点击【编辑】,将权限都勾上,随即点击【确定】即可,【node_cache】步骤同理。
在这里插入图片描述
在这里插入图片描述
3、以上两种都没有解决问题的话,我就使用了第三种
以管理员身份运行以下命令后,执行npm install express -g,安装成功

/*查看当前系统时间*/
date
/*查看返回系统时间是否正确*/
/*如果不正确使用以下命令来设置系统时间。
例如,如果你想将系统时间设置为2023年3月16日,你可以输入以下命令:*/
date 2023-03-16
/*清除npm的缓存*/
npm cache clean --force
/*更新npm*/
npm install -g npm

在这里插入图片描述

注意:有人说还要取消证书验证,执行第二行代码,但是npm config set strict-ssl false会绕过ssl验证导致连接容易受他人攻击,有安全风险。不得已的方法才会这么做,建议有其他优先解决的方法还是用其他方法

npm cache clean --force
npm config set strict-ssl false
npm install

4、还有一个输入命令的时候我把后面的注释也复制上去了,总是安装失败,要删掉注释
在这里插入图片描述

参考文档
报错教程:https://blog.csdn.net/tombosky/article/details/135835362.
安装教程:https://blog.csdn.net/WHF__/article/details/129362462.

七、git安装及配置

git的下载

git下载地址:https://git-scm.com/download/.
使用Windows系统自带的浏览器Edge访问git下载地址,能够自动识别电脑的操作系统,点击“Download for windows”或者“Windows”即可到Git版本页面。
在这里插入图片描述
查看电脑是多少位的操作系统(查看方式:此电脑》属性》系统》系统信息)来确定下载什么版本的git
在这里插入图片描述
Git for Windows Setup和Git for Windows Portable(便携版)两个版本都
可以,我选择的是64bit基本版本,选择"64-bit Git for Windows Setup"。

Git Portable是针对windows版git所设计的一款软件,是便携版或移动版的git。你可以选择将它安装在U盘等便携设备上。它不需要安装,也不会在注册表上留下记录。正因为这样,你也无法像桌面版的git那样,使用右键“git Bash here”或者“git GUI here”。

参考文档

git的安装与下载:https://blog.csdn.net/mukes/article/details/115693833.
配置参考教程:https://zhuanlan.zhihu.com/p/443527549.

相关文章:

spring boot + vue 搭建环境

参考文档&#xff1a;https://blog.csdn.net/weixin_44215249/article/details/117376417?fromshareblogdetail&sharetypeblogdetail&sharerId117376417&sharereferPC&sharesourceqxpapt&sharefromfrom_link. spring boot vue 搭建环境 一、浏览器二、jd…...

Linux下的shell指令(一)

作业 1> 在终端提示输入一个成绩&#xff0c;通过shell判断该成绩的等级 [90,100] : A [80, 90) : B [70, 80) : C [60, 70) : D [0, 60) : 不及格 #!/bin/bash read -p "请输入学生成绩:" score if [ "$score" -ge 90 ] && [ "$scor…...

JS禁止web页面调试

前言 由于前端在页面渲染的过程中 会调用很多后端的接口&#xff0c;而有些接口是不希望别人看到的&#xff0c;所以前端调用后端接口的行为动作就需要做一个隐藏。 禁用右键菜单 document.oncontextmenu function() {console.log("禁用右键菜单");return false;…...

GIt分支合并

分支 1: C0 → C1 → C2 → C3&#xff08;最新&#xff09; 分支 2: C0 → C4 → C5 → C6&#xff08;最新&#xff09;1. 找到共同父节点 C0 Git 会先找出 branch1 和 branch2 的共同祖先节点 C0。这通常借助 git merge-base 命令达成&#xff0c;虽然在日常使用 git merge…...

Sqli-labs

1.搭建【前提是已经下载安装好phpstudy_pro】 1.1源码准备 1.1.1源码下载 这里从github下载 https://codeload.github.com/Audi-1/sqli-labs/zip/masterhttps://codeload.github.com/Audi-1/sqli-labs/zip/master 1.1.2下载的靶场源码放到WWW下 将刚才下载的压缩包解压到…...

unreal engine gameplay abiliity 获取ability的cooldown剩余时间

unreal engine gameplay abiliity 获取ability的cooldown 版本 5.4.4 参考 测试代码 if (HasAuthority() && AbilitySystemComponent){TArray<FGameplayAbilitySpecHandle> OutAbilityHandles;AbilitySystemComponent->GetAllAbilities(OutAbilityHandles…...

【GenBI优化】提升text2sql准确率:建议使用推理大模型,增加重试

引言 Text-to-SQL(文本转 SQL)是自然语言处理(NLP)领域的一项重要任务,旨在将自然语言问题自动转换为可在数据库上执行的 SQL 查询语句。这项技术在智能助手、数据分析工具、商业智能(BI)平台等领域具有广泛的应用前景,能够极大地降低数据查询和分析的门槛,让非技术用…...

【六祎 - Note】SQL备忘录;DDL,DML,DQL,DCL

SQL备忘录 from to : 点击访问源地址...

高频 SQL 50 题(基础版)_1341. 电影评分

高频 SQL 50 题&#xff08;基础版&#xff09;_1341. 电影评分 思路 思路 (select Users.name results from Users left join MovieRating on Users.user_id MovieRating.user_id group by(Users.name) order by count(MovieRating.movie_id) desc,Users.name asc limit 1) u…...

JavaScript 变量命名规范

在编写JavaScript代码时&#xff0c;选择合适的变量名对于代码的清晰度、可读性和可维护性至关重要。一个良好的变量命名规范不仅能帮助团队成员更好地理解代码意图&#xff0c;还能减少错误发生的可能性。本文将介绍一些广泛接受的JavaScript变量命名规则和最佳实践。 命名的…...

解决 uView-UI和uv-ui 中 u-tabs 组件在微信小程序中出现横向滚动条的问题

问题描述 在微信小程序中使用 uView-UI 的 u-tabs 组件时&#xff0c;用户可能会遇到横向滚动条的问题。这不仅影响了页面的美观&#xff0c;还可能导致用户误操作。 问题原因 该问题的根本原因是未在微信小程序环境下屏蔽滚动条。uView-UI 的 u-tabs 组件默认只在 H5 环境下…...

20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开

sync poweroff rootok3588:/# sync rootok3588:/# sync rootok3588:/# cd 107 rootok3588:/107# ls -l total 0 rootok3588:/107# sync rootok3588:/107# poweroff 20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开 2025/3/4 10:58 缘起&#xff1a…...

build gcc

1&#xff0c;下载源码 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.2.1.tar.gz git clone --mirror https://github…...

【每日论文】How far can we go with ImageNet for Text-to-Image generation?

下载PDF或查看论文&#xff0c;请点击&#xff1a;LlamaFactory - huggingface daily paper - 每日论文解读 | LlamaFactory | LlamaFactory 摘要 近年来&#xff0c;通过在大规模数据集上训练&#xff0c;文本到图像&#xff08;T2I&#xff09;生成模型已经取得了显著成果&a…...

STM32 两个单片机之间的通信

STM32 两个单片机之间的通信 原创 HS 平凡灵感码头 2025年03月04日 11:25 广东 以上我们就是有A B两个板子来进行通信&#xff0c;A板将接收按键的键值&#xff0c;然后发送给B板&#xff0c;B板接收键值&#xff0c;然后判断键值控制LED翻转&#xff0c;然后把键值按字符形式…...

Linux 下使用traceroute来进行网络诊断分析

简介 traceroute 命令是一种网络诊断工具&#xff0c;用于跟踪数据包从系统到目标服务器的路径。它有助于识别网络延迟和路由问题。 安装 Debian/Ubuntu sudo apt install traceroute -yRHEL/CentOS sudo yum install traceroute -yFedora sudo dnf install traceroute -…...

基于vue框架的游戏商城系统cq070(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。

系统程序文件列表 项目功能&#xff1a;用户,分类,商品信息,游戏高手,游戏代练 开题报告内容 基于Vue框架的游戏商城系统开题报告 一、研究背景与意义 随着互联网技术的飞速发展和游戏产业的蓬勃兴起&#xff0c;游戏商城作为游戏产业链中的重要一环&#xff0c;迎来了前所…...

SpringBoot接入DeepSeek(硅基流动版)+ 前端页面调试(WebSocket连接模式)

文章目录 前言正文一、项目环境二、项目代码2.1 pom.xml2.2 DeepSeekController.java2.3 启动类2.4 logback-spring.xml2.5 application.yaml2.6 WebsocketConfig.java2.7 AiChatWebSocketHandler.java2.8 SaveChatSessionParamRequest.java2.9 index.html 三、页面调试3.1 主页…...

idea实现热部署

1.在pom.xml文件添加依赖 java <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional></dependency> 更新可见配置成功&#xff1a; 2.在appli…...

记一次误禁用USB导致键盘鼠标失灵的修复过程

背景说明 在电脑上插入了一个USB hub&#xff0c;然后弹窗提示&#xff1a;“集线器端口上出现电涌”&#xff0c;点开让选择“重置”或者“关闭”&#xff0c;不小心点了关闭&#xff0c;结果这个usb口就被关了&#xff0c;再插任何东西都没反应&#xff0c;找了很多办法都恢…...

uniapp 对接腾讯云IM群组成员管理(增删改查)

UniApp 实战&#xff1a;腾讯云IM群组成员管理&#xff08;增删改查&#xff09; 一、前言 在社交类App开发中&#xff0c;群组成员管理是核心功能之一。本文将基于UniApp框架&#xff0c;结合腾讯云IM SDK&#xff0c;详细讲解如何实现群组成员的增删改查全流程。 权限校验…...

JavaSec-RCE

简介 RCE(Remote Code Execution)&#xff0c;可以分为:命令注入(Command Injection)、代码注入(Code Injection) 代码注入 1.漏洞场景&#xff1a;Groovy代码注入 Groovy是一种基于JVM的动态语言&#xff0c;语法简洁&#xff0c;支持闭包、动态类型和Java互操作性&#xff0c…...

stm32G473的flash模式是单bank还是双bank?

今天突然有人stm32G473的flash模式是单bank还是双bank&#xff1f;由于时间太久&#xff0c;我真忘记了。搜搜发现&#xff0c;还真有人和我一样。见下面的链接&#xff1a;https://shequ.stmicroelectronics.cn/forum.php?modviewthread&tid644563 根据STM32G4系列参考手…...

AI Agent与Agentic AI:原理、应用、挑战与未来展望

文章目录 一、引言二、AI Agent与Agentic AI的兴起2.1 技术契机与生态成熟2.2 Agent的定义与特征2.3 Agent的发展历程 三、AI Agent的核心技术栈解密3.1 感知模块代码示例&#xff1a;使用Python和OpenCV进行图像识别 3.2 认知与决策模块代码示例&#xff1a;使用OpenAI GPT-3进…...

中南大学无人机智能体的全面评估!BEDI:用于评估无人机上具身智能体的综合性基准测试

作者&#xff1a;Mingning Guo, Mengwei Wu, Jiarun He, Shaoxian Li, Haifeng Li, Chao Tao单位&#xff1a;中南大学地球科学与信息物理学院论文标题&#xff1a;BEDI: A Comprehensive Benchmark for Evaluating Embodied Agents on UAVs论文链接&#xff1a;https://arxiv.…...

关于iview组件中使用 table , 绑定序号分页后序号从1开始的解决方案

问题描述&#xff1a;iview使用table 中type: "index",分页之后 &#xff0c;索引还是从1开始&#xff0c;试过绑定后台返回数据的id, 这种方法可行&#xff0c;就是后台返回数据的每个页面id都不完全是按照从1开始的升序&#xff0c;因此百度了下&#xff0c;找到了…...

TRS收益互换:跨境资本流动的金融创新工具与系统化解决方案

一、TRS收益互换的本质与业务逻辑 &#xff08;一&#xff09;概念解析 TRS&#xff08;Total Return Swap&#xff09;收益互换是一种金融衍生工具&#xff0c;指交易双方约定在未来一定期限内&#xff0c;基于特定资产或指数的表现进行现金流交换的协议。其核心特征包括&am…...

BCS 2025|百度副总裁陈洋:智能体在安全领域的应用实践

6月5日&#xff0c;2025全球数字经济大会数字安全主论坛暨北京网络安全大会在国家会议中心隆重开幕。百度副总裁陈洋受邀出席&#xff0c;并作《智能体在安全领域的应用实践》主题演讲&#xff0c;分享了在智能体在安全领域的突破性实践。他指出&#xff0c;百度通过将安全能力…...

在鸿蒙HarmonyOS 5中使用DevEco Studio实现录音机应用

1. 项目配置与权限设置 1.1 配置module.json5 {"module": {"requestPermissions": [{"name": "ohos.permission.MICROPHONE","reason": "录音需要麦克风权限"},{"name": "ohos.permission.WRITE…...

使用Matplotlib创建炫酷的3D散点图:数据可视化的新维度

文章目录 基础实现代码代码解析进阶技巧1. 自定义点的大小和颜色2. 添加图例和样式美化3. 真实数据应用示例实用技巧与注意事项完整示例(带样式)应用场景在数据科学和可视化领域,三维图形能为我们提供更丰富的数据洞察。本文将手把手教你如何使用Python的Matplotlib库创建引…...