On_Java 安装

Ubuntu环境下打开.chm文件
broadview_java
于 2023-02-20 12:48:37 发布 342
收藏
分类专栏: Android 开发工具 文章标签: ubuntu chm文件
版权
Android 开发工具 专栏收录该内容
19 篇文章 1 订阅
订阅专栏

  1. 前言

     在ubuntu下,下载了一个JDK1.8 api中文文档,格式为.chm, 系统默认情况下是不支持直接打开的,需要自己安装一下软件, 推荐Kchmviewer软件
    
  2. 软件简介

     Kchmviewer 是一款不错的开源软件,你可以使用它在Linux系统下阅读 CHM格式 的电子书。KchmViewer 作为一款使用Qt开发的程序,与KDE桌面环境整合得很好。从语言兼容性上看,KchmViewer 支持包括中文、俄文等在内的多种语言。它不像有的CHM阅读程序,仅仅支持几种很少的语言。在功能特性上,KchmViewer 具有搜索、书签、更改字体大小、浏览目录、设置代码页等。Kchmviewer 的主要优势是扩展支持非英语类语言,不同其他,它能准确地确定文件的编码,正确的显示中文,朝鲜语,日本语的帮助文档,能够正确搜索非英语的单词。
    
  3. 安装命令

sudo apt-get install kchmviewer

  1. 解决中文乱码

     有可能你下载的chm文件,打开后中文是乱码的,解决方法如下
    

菜单选项 View ---- 选择 Set encoding ---- Chinese Simpilified (GB2313) 其他中文编码也可以试试,直到解决问题.

正常显示图如下:

————————————————
版权声明:本文为CSDN博主「broadview_java」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012514113/article/details/129121713

3: 上传jdk安装到到linux服务器
推荐放到/usr/local目录下
4: 解压jdk
解压到当前文件夹:
tar -xvf jdk-8u291-linux-x64.tar.gz

5: 配置环境变量
· 安装Java:如果系统中未安装Java,可以使用以下命令来安装Java运行时环境和Java开发工具包(JDK):
· · bashCopy Code
· · sudo apt update
sudo apt install default-jre
sudo apt install default-jdk
· · 这些命令将更新系统的软件包信息,并安装默认的Java运行时环境和JDK。
确定Java安装路径:安装Java后,需要确定Java的安装路径。可以通过运行update-alternatives --list java命令来找到Java的安装路径
用root@wannian07-PC:~# update-alternatives --list java
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
root@wannian07-PC:~# gedit /etc/profile
设置Java环境变量:一旦确定了Java的安装路径,需要在终端中执行以下命令来设置Java环境变量:
设置JAVA_HOME环境变量,指向Java的安装目录。例如,如果Java安装在/usr/lib/jvm/java-版本路径下,可以在用户配置文件(如~/.bashrc或~/.zshrc)中添加以下行:export JAVA_HOME=/usr/lib/jvm/java-版本。

进入编辑状态,加入下边这段配置
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

#export JAVA_HOME=/usr/local/jdk1.8.0_291
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVAHOME/bin:PATH
export CLASSPATH=.: J A V A H O M E / l i b / d t . j a r : JAVA_HOME/lib/dt.jar: JAVAHOME/lib/dt.jar:JAVA_HOME/lib/tools.jar

6: 重新加载配置
source /etc/profile
7: 测试一下
root@wannian07-PC:~# source /etc/profile
root@wannian07-PC:~# java -version
java version “1.8.0_291”
Java™ SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot™ 64-Bit Server VM (build 25.291-b10, mixed mode)
root@wannian07-PC:~#

root@wannian07-PC:/# java -version
java version “1.8.0_291”
Java™ SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot™ 64-Bit Server VM (build 25.291-b10, mixed mode)


root@wannian07-PC:/home/wannian07/Desktop/java/example# ls
annotations	collectiontopics  equalshashcode     gradlew.bat   newio	 references	  strings
appveyorXX.yml	com		  exceptions	     hiding	   NOTES.md	 reflection	  validating
arrays		compression	  files		     housekeeping  objects	 reuse
build.gradle	concurrent	  functional	     innerclasses  onjava	 serialization
buildSrc	control		  generics	     interfaces    operators	 settings.gradle
checkstyle.xml	Copyright.txt	  gradle	     iostreams	   patterns	 standardio
chkstyle.bat	enumerations	  gradle.properties  javadoc	   polymorphism  staticchecking
collections	enums		  gradlew	     lowlevel	   README.md	 streams
root@wannian07-PC:/home/wannian07/Desktop/java/example# sudo apt-get install gradle
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:ant ant-optional antlr bnd ca-certificates-java default-jre-headless glassfish-jmac-api groovy ivy java-commonjava-wrappers javascript-common junit junit4 libantlr-java libaopalliance-java libapache-pom-java libasm-javalibatinject-jsr330-api-java libbcel-java libbcpg-java libbcprov-java libbindex-java libbsf-java libbsh-javalibcdi-api-java libcglib-java libclassworlds-java libcommons-cli-java libcommons-codec-javalibcommons-collections3-java libcommons-dbcp-java libcommons-httpclient-java libcommons-io-java libcommons-lang-javalibcommons-lang3-java libcommons-logging-java libcommons-net-java libcommons-parent-java libcommons-pool-javalibdom4j-java libdoxia-core-java libeasymock-java libecj-java libeclipse-aether-java libfelix-osgi-obr-javalibfindbugs-java libgeronimo-interceptor-3.0-spec-java libgoogle-gson-java libgpars-groovy-java libgradle-core-javalibgradle-plugins-java libguava-java libguice-java libhamcrest-java libhawtjni-runtime-java libhttpclient-javalibhttpcore-java libisorelax-java libjansi-java libjansi-native-java libjarjar-java libjatl-java libjaxen-javalibjaxp1.3-java libjcifs-java libjcip-annotations-java libjcommander-java libjcsp-java libjdom1-javalibjetty9-extra-java libjetty9-java libjformatstring-java libjline2-java libjna-java libjna-jni libjs-jquerylibjsch-java libjsoup-java libjsr166y-java libjsr305-java libjzlib-java libkryo-java libkxml2-java liblog4j1.2-javaliblogback-java libmail-java libmaven-parent-java libmaven2-core-java libmaven3-core-java libminlog-java libmsv-javalibmultiverse-core-java libnative-platform-java libnative-platform-jni libnekohtml-java libnetty-3.9-javalibobjenesis-java libosgi-annotation-java libosgi-compendium-java libosgi-core-java libplexus-ant-factory-javalibplexus-archiver-java libplexus-bsh-factory-java libplexus-cipher-java libplexus-classworlds-javalibplexus-classworlds2-java libplexus-cli-java libplexus-component-annotations-java libplexus-component-metadata-javalibplexus-container-default-java libplexus-container-default1.5-java libplexus-containers-javalibplexus-containers1.5-java libplexus-interactivity-api-java libplexus-interpolation-java libplexus-io-javalibplexus-sec-dispatcher-java libplexus-utils-java libplexus-utils2-java libpolyglot-maven-java libqdox-javalibqdox2-java libreflectasm-java librelaxng-datatype-java librhino-java libservlet3.1-java libsimple-http-javalibsisu-inject-java libsisu-plexus-java libslf4j-java libspring-beans-java libspring-core-javalibtaglibs-standard-impl-java libtaglibs-standard-spec-java libtomcat8-java libwagon-java libwagon2-javalibxalan2-java libxbean-java libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java libxom-javalibxpp2-java libxpp3-java libxstream-java libyaml-snake-java openjdk-8-jre-headless testng
建议安装:ant-doc ant-gcj default-jdk | java-compiler | java-sdk ant-optional-gcj javacc jython libjdepend-java liboro-javalibregexp-java eclipse-jdt eclipse-rcp default-jre gradle-doc groovy-doc libjsch-agent-proxy-java ivy-doc default-jre| java2-runtime apache2 | lighttpd | httpd junit-doc libaopalliance-java-doc libatinject-jsr330-api-java-doclibbcel-java-doc libbcpg-java-doc libbcprov-java-doc bsh rhino libclassworlds-java-doclibcommons-collections3-java-doc libcommons-dbcp-java-doc libgeronimo-jta-1.1-spec-java libcommons-httpclient-java-doclibcommons-io-java-doc libcommons-lang-java-doc libcommons-lang3-java-doc libavalon-framework-javalibcommons-logging-java-doc libexcalibur-logkit-java libcommons-net-java-doc libdom4j-java-doc libeasymock-java-docecj libecj-java-gcj libfelix-osgi-obr-java-doc libgoogle-gson-java-doc libgpars-groovy-java-doc libjaxp1.3-java-gcjlibjcifs-java-doc libjcommander-java-doc libjcsp-java-doc libjdom1-java-doc jetty9 libjna-java-doc libjsoup-java-doclibjsr305-java-doc liblog4j1.2-java-doc libgeronimo-jms-1.1-spec-java libjanino-java libmail-java-doclibnative-platform-java-doc libnekohtml-java-doc libbcpkix-java libjboss-logging-java libnetty-tcnative-javalibprotobuf-java libobjenesis-java-doc libosgi-annotation-java-doc libosgi-compendium-java-doc libosgi-core-java-doclibplexus-cipher-java-doc libplexus-classworlds-java-doc libplexus-classworlds2-java-doc libplexus-cli-java-doclibplexus-container-default-java-doc libplexus-interactivity-api-java-doc libplexus-interpolation-java-doclibplexus-sec-dispatcher-java-doc libplexus-utils-java-doc libplexus-utils2-java-doc libpolyglot-maven-java-doclibqdox-java-doc libqdox2-java-doc libsimple-http-java-doc libaspectj-java tomcat8 libwagon-java-doclibxalan2-java-doc libxsltc-java libequinox-osgi-java libspring-context-java libspring-web-java libxerces2-java-doclibxerces2-java-gcj libxml-commons-resolver1.1-java-doc libxom-java-doc libcglib-nodep-java libjdom2-javalibjettison-java libjoda-time-java libwoodstox-java libnss-mdns fonts-dejavu-extra fonts-ipafont-gothicfonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
下列【新】软件包将被安装:ant ant-optional antlr bnd ca-certificates-java default-jre-headless glassfish-jmac-api gradle groovy ivy java-commonjava-wrappers javascript-common junit junit4 libantlr-java libaopalliance-java libapache-pom-java libasm-javalibatinject-jsr330-api-java libbcel-java libbcpg-java libbcprov-java libbindex-java libbsf-java libbsh-javalibcdi-api-java libcglib-java libclassworlds-java libcommons-cli-java libcommons-codec-javalibcommons-collections3-java libcommons-dbcp-java libcommons-httpclient-java libcommons-io-java libcommons-lang-javalibcommons-lang3-java libcommons-logging-java libcommons-net-java libcommons-parent-java libcommons-pool-javalibdom4j-java libdoxia-core-java libeasymock-java libecj-java libeclipse-aether-java libfelix-osgi-obr-javalibfindbugs-java libgeronimo-interceptor-3.0-spec-java libgoogle-gson-java libgpars-groovy-java libgradle-core-javalibgradle-plugins-java libguava-java libguice-java libhamcrest-java libhawtjni-runtime-java libhttpclient-javalibhttpcore-java libisorelax-java libjansi-java libjansi-native-java libjarjar-java libjatl-java libjaxen-javalibjaxp1.3-java libjcifs-java libjcip-annotations-java libjcommander-java libjcsp-java libjdom1-javalibjetty9-extra-java libjetty9-java libjformatstring-java libjline2-java libjna-java libjna-jni libjs-jquerylibjsch-java libjsoup-java libjsr166y-java libjsr305-java libjzlib-java libkryo-java libkxml2-java liblog4j1.2-javaliblogback-java libmail-java libmaven-parent-java libmaven2-core-java libmaven3-core-java libminlog-java libmsv-javalibmultiverse-core-java libnative-platform-java libnative-platform-jni libnekohtml-java libnetty-3.9-javalibobjenesis-java libosgi-annotation-java libosgi-compendium-java libosgi-core-java libplexus-ant-factory-javalibplexus-archiver-java libplexus-bsh-factory-java libplexus-cipher-java libplexus-classworlds-javalibplexus-classworlds2-java libplexus-cli-java libplexus-component-annotations-java libplexus-component-metadata-javalibplexus-container-default-java libplexus-container-default1.5-java libplexus-containers-javalibplexus-containers1.5-java libplexus-interactivity-api-java libplexus-interpolation-java libplexus-io-javalibplexus-sec-dispatcher-java libplexus-utils-java libplexus-utils2-java libpolyglot-maven-java libqdox-javalibqdox2-java libreflectasm-java librelaxng-datatype-java librhino-java libservlet3.1-java libsimple-http-javalibsisu-inject-java libsisu-plexus-java libslf4j-java libspring-beans-java libspring-core-javalibtaglibs-standard-impl-java libtaglibs-standard-spec-java libtomcat8-java libwagon-java libwagon2-javalibxalan2-java libxbean-java libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java libxom-javalibxpp2-java libxpp3-java libxstream-java libyaml-snake-java openjdk-8-jre-headless testng
升级了 0 个软件包,新安装了 151 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 114 MB 的归档。
解压缩后会消耗 226 MB 的额外空间。
您希望继续执行吗? [Y/n] yUpdating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...done.
done.
root@wannian07-PC:/home/wannian07/Desktop/java/example# gradle wrapper --gradle-version 2.13 
Starting a Gradle Daemon (subsequent builds will be faster)
Invalidating buildSrc state cache (/home/wannian07/Desktop/java/example/buildSrc/.gradle/noVersion/buildSrc) as it was not closed cleanly.
Generating JAR file 'gradle-api-3.2.1.jar'
Parallel execution is an incubating feature.
:buildSrc:clean UP-TO-DATE
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy
:buildSrc:processResources
:buildSrc:classes
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build
Download https://plugins.gradle.org/m2/me/champeau/gradle/jmh-gradle-plugin/0.5.2/jmh-gradle-plugin-0.5.2.pom
Download https://plugins.gradle.org/m2/org/openjdk/jmh/jmh-core/1.25/jmh-core-1.25.pom
Download https://plugins.gradle.org/m2/org/openjdk/jmh/jmh-parent/1.25/jmh-parent-1.25.pom
Download https://plugins.gradle.org/m2/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.pom
Download https://plugins.gradle.org/m2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Download https://plugins.gradle.org/m2/org/apache/commons/commons-math3/3.2/commons-math3-3.2.pom
Download https://plugins.gradle.org/m2/org/apache/commons/commons-parent/28/commons-parent-28.pom
Download https://plugins.gradle.org/m2/org/apache/apache/13/apache-13.pom
Download https://plugins.gradle.org/m2/me/champeau/gradle/jmh-gradle-plugin/0.5.2/jmh-gradle-plugin-0.5.2.jar
Download https://plugins.gradle.org/m2/org/openjdk/jmh/jmh-core/1.25/jmh-core-1.25.jar
Download https://plugins.gradle.org/m2/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar
Download https://plugins.gradle.org/m2/org/apache/commons/commons-math3/3.2/commons-math3-3.2.jarFAILURE: Build failed with an exception.* Where:
Script '/home/wannian07/Desktop/java/example/gradle/java.gradle' line: 35* What went wrong:
A problem occurred evaluating script.
> Could not find method implementation() for arguments [org.slf4j:slf4j-api:1.7.21] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDTotal time: 24.214 secs
root@wannian07-PC:/home/wannian07/Desktop/java/example# gradle -v------------------------------------------------------------
Gradle 3.2.1
------------------------------------------------------------Build time:   2012-12-21 00:00:00 UTC
Revision:     noneGroovy:       2.4.8
Ant:          Apache Ant(TM) version 1.9.9 compiled on July 22 2018
JVM:          1.8.0_291 (Oracle Corporation 25.291-b10)
OS:           Linux 5.0.0-13-generic amd64root@wannian07-PC:/home/wannian07/Desktop/java/example# ./gradlew build
Downloading https://services.gradle.org/distributions/gradle-6.8.1-bin.zip
..........10%..........20%..........30%...........40%..........50%..........60%..........70%...........80%..........90%..........100%Welcome to Gradle 6.8.1!Here are the highlights of this release:- Faster Kotlin DSL script compilation- Vendor selection for Java toolchains- Convenient execution of tasks in composite builds- Consistent dependency resolutionFor more details see https://docs.gradle.org/6.8.1/release-notes.htmlStarting a Gradle Daemon (subsequent builds will be faster)
.
.
.
.
BUILD SUCCESSFUL in 1m 1s
772 actionable tasks: 727 executed, 45 up-to-date
root@wannian07-PC:/home/wannian07/Desktop/java/example# ./gradlew compileJavaBUILD SUCCESSFUL in 2s
44 actionable tasks: 44 up-to-date
root@wannian07-PC:/home/wannian07/Desktop/java/example# ./gradlew testBUILD SUCCESSFUL in 1s
50 actionable tasks: 1 executed, 49 up-to-date
root@wannian07-PC:/home/wannian07/Desktop/java/example# ./gradlew objects:HelloDate> Task :objects:HelloDate
Hello, it's: 
Sat Jun 22 06:13:16 CST 2024BUILD SUCCESSFUL in 1s
4 actionable tasks: 1 executed, 3 up-to-date
root@wannian07-PC:/home/wannian07/Desktop/java/example# ./gradlew objects:ShowProperties> Task :objects:ShowProperties
-- listing properties --
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=/usr/local/jdk1.8.0_291/jre/lib/amd64
java.vm.version=25.291-b10
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
path.separator=:
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=CN
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/home/wannian07/Desktop/java/example/...
java.runtime.version=1.8.0_291-b10
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/usr/local/jdk1.8.0_291/jre/lib/endorsed
os.arch=amd64
java.io.tmpdir=/tmp
line.separator=java.vm.specification.vendor=Oracle Corporation
user.variant=
os.name=Linux
sun.jnu.encoding=UTF-8
java.library.path=/usr/java/packages/lib/amd64:/usr/lib...
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=5.0.0-13-generic
user.home=/root
user.timezone=
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
java.specification.version=1.8
user.name=root
java.class.path=/home/wannian07/Desktop/java/example/...
java.vm.specification.version=1.8
sun.arch.data.model=64
java.home=/usr/local/jdk1.8.0_291/jre
sun.java.command=ShowProperties
java.specification.vendor=Oracle Corporation
user.language=zh
awt.toolkit=sun.awt.X11.XToolkit
java.vm.info=mixed mode
java.version=1.8.0_291
java.ext.dirs=/usr/local/jdk1.8.0_291/jre/lib/ext:/...
sun.boot.class.path=/usr/local/jdk1.8.0_291/jre/lib/resou...
java.vendor=Oracle Corporation
file.separator=/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.isalist=
root
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/libBUILD SUCCESSFUL in 1s
4 actionable tasks: 1 executed, 3 up-to-date
root@wannian07-PC:/home/wannian07/Desktop/java/example# 

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

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

相关文章

cron.timezone

系统 date 数据库 show timezone插件 show cron.timezonealter system set cron.timezonePRC;show cron.timezone

node 升级之后 npm run build 错误

错误信息 Error Error: error:0308010C:digital envelope routines::unsupportedat new Hash (node:internal/crypto/hash:67:19)at Object.createHash (node:crypto:130:10)该错误源于您对过时的 SSL 版本的依赖,因此您有两个好的选择和两个最好但值得怀疑的选择&…

【odoo】常用的基本视图类型

概要 在Odoo中,有几种基本视图类型,每种视图类型用于不同的目的和场景。这些视图类型包括表单视图(form view)、树视图(tree view)、看板视图(kanban view)、图表视图(gr…

tessy 编译报错:单元测试时,普通桩函数内容相关异常场景

目录 1,失败现象 2,原因分析 1,失败现象 1,在 step 桩函数正常的情况下报错。 2,测试代码执行的数据流 和 step 桩函数内容不一致。 2,原因分析 桩函数分为 test object, test case, test step 三种类别。…

研究人员描述了如何判断ChatGPT是否在虚构

研究人员描述了如何判断ChatGPT是否在虚构 这是世界上最不为人知的秘密之一,大型语言模型对查询给出了明显错误的答案,并自信地这样做,与它们正确的时候没有区别。这有很多原因。人工智能可能已经接受了错误信息的训练;答案可能需要从LLM无法…

Flutter【组件】富文本组件

简介 flutter 富文本组件。 github地址: https://github.com/ThinkerJack/jac_uikit pub地址:https://pub.dev/packages/jac_uikit 使用方式 运行 flutter pub add jac_uikit组件文档 使用方式: HighlightedTextWidget.builder(text: &…

Linux解压缩命令

文章目录 前言1. tar - 打包和压缩文件2. gzip - 压缩文件3. gunzip - 解压缩gzip文件4. bzip2 - 压缩文件5. unzip - 解压缩zip文件6. zip - 压缩文件为zip格式7. 7z - 7-Zip压缩工具8. unrar - 解压缩RAR文件 前言 解压缩文件在Linux中是常见的任务,以下是一些常…

内积知识点小记

import numpy as np a np.array([1,2]) b np.array([3,4]) c a b # 11e np.array([[1,2],[3,4]]) f np.array([[5,6],[7,8]])g e f #array([[19, 22],[43, 50]])内积,也称为点积或数量积,是数学中接受在实数R上的两个向量并返回一个实数值标量的…

视频数据标注

视频采集 视频采集通常指的是将视频信号从视频源(如摄像头、视频播放器等)捕获并转换为数字格式,以便于计算机处理和存储。 视频采集步骤: 视频信号捕获:通过摄像头、网络摄像头、视频采集卡等设备将视频信号捕获。 …

SpringMVC的使用

SpringMVC详情 RequestMapping("/hello") 负责用户的请求路径与后台服务器之间的映射关系 如果请求路径不匹配,则用户报错404 ResponseBody 作用: 将服务器的返回值转化为JSON. 如果服务器返回的是String类型,则按照自身返回. 新增: post请求类型 PostMapping("…

Java 从零开始写一个简单的图书管理系统

了解一下 先来了解要实现一个怎样的图书管理系统 从中可以看到有操作的 使用者 和 不同 的 功能 而不同的使用者有不同的 菜单 那要如何实现呢? 请继续看下去 如何实现 首先了解我们 需要什么 图书系统需要 书,放书的 书架 ,用户 中有 管…

理解Python中的类型不兼容性:为什么 `dict[int, int]` 不兼容 `dict[int, int | str]`

在使用Python的类型提示时,开发者可能会遇到一些看似不合理的类型不兼容错误。一个典型的问题是,为什么 dict[int, int] 不能赋值给 dict[int, int | str]。本文将详细探讨这个问题,并提供一些解决方法。 例子分析 考虑以下代码片段&#x…

大数据与java哪个好找工作?这篇文章帮你做选择!

大数据与java哪个好找工作?这篇文章帮你做选择! 还在为选择Java开发还是Java大数据而头疼吗?别担心,本文将从就业前景、学习方向、学习内容以及薪资待遇四个方面,为你揭开Java和Java大数据的神秘面纱,帮你做…

【STM32】时钟树系统

1.时钟树简介 1.1五个时钟源 LSI是低速内部时钟,RC振荡器,频率为32kHz左右。供独立看门狗和自动唤醒单元使用。 LSE是低速外部时钟,接频率为32.768kHz的石英晶体。这个主要是RTC的时钟源。 HSE是高速外部时钟,可接石英*/陶瓷谐振…

[18] Opencv_CUDA应用之 基于颜色的对象检测与跟踪

Opencv_CUDA应用之 基于颜色的对象检测与跟踪 使用颜色作为特征来检测特定颜色的对象当要检测的对象具有特定颜色且该颜色与背景颜色不同时此方法很有用本方法不适用于对象与背景颜色相近的情况 蓝色对象检测与跟踪 首先肯定会想到如何将蓝色分割出来?该使用哪个…

Webstorm vue项目@路径不能跳转到对应资源,提示Cannot find declaration to go to

Webstorm vue项目路径不能跳转到对应资源,提示Cannot find declaration to go to 我们 ctrl加鼠标左键点击方法会失效,看了网上很多教程在说需要在此处配置一下webpack.config.js的文件路径,而且指向了node_modules\vue\cli-service\webpack.config.js 我…

外贸SEO工具有哪些推荐?

"我们作为一个专业的Google SEO团队,比较推荐一下几个适合外贸SEO的工具。Ahrefs 是一个非常强大的工具,可以帮助你深入分析竞争对手的表现,找到有潜力的关键词,还可以监控你的网站链接状况。另外,SEMrush 也很不…

Android基础到进阶UI祖父级 ViewGroup介绍+实用

1.创建CustomLayout继承ViewGroup /** 编写自定义ViewGroup的示例。 */ public class CustomLayout extends ViewGroup { // private int childHorizontalSpace 20; // private int childVerticalSpace 20; private int childHorizontalSpace; private int childVert…

Android企业级实战-界面篇-5

3.colors.xml文件内容(此案例可用) #ffb2b2b2 #ff14c4bc color/jimeng_text_tertiary_light color/jimeng_green_light color/jimeng_background_secondary_light color/jimeng_background_secondary_light #7f4eb7ba 4.strings.xml文件内容&…