草庐IT

DEFAULT_PORT

全部标签

java - 在 Spring MVC 配置中将 default-servlet-handler 放在哪里

在我的web.xml,默认的servlet映射,即/,映射到Spring调度程序。在我的Spring调度程序配置中,我有DefaultAnnotationHandlerMapping,ControllerClassNameHandlerMapping和AnnotationMethodHandlerAdapter这允许我通过类名或其@Requestmapping将url映射到Controller注解。但是,在web根目录下有一些静态资源,我也希望springdispatcher使用默认的servlet来提供服务。根据Springdocumentation,这可以使用来完成标签。在下面的配

java - 远程调试 : No connection to Wildfly 14 on OpenJDK 11 at port 8787

我正在尝试将我的调试器连接到在OpenJDK11上运行的Wildlfy。尽管Wildfly说:Listeningfortransportdt_socketataddress:8787我的IDE(IntelliJIDEACE2018.1)声称它没有任何连接:Unabletoopendebuggerport(localhost:8787):java.io.IOException"handshakefailed-connectionprematurallyclosed".我通过standalone.sh--debug启动Wildfly,导致以下JAVA_OPTS:-server-Xms64m

记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer:...

一、前言:windows电脑重装系统,去官网下载了最新的git安装,一路next下来,打开bash按老路子设置,生成公钥gitconfig--globaluser.name"yourname"gitconfig--globaluser.email"your@email.com"ssh-keygen-trsa-C"your@email.com"把公钥添加到阿里云,clone代码时拉不下来,报错。Unabletonegotiatewith****port22:nomatchinghostkeytypefound.Theiroffer:ssh-rsafatal:Couldnotreadfromrem

解决vite打包出现 “default“ is not exported by “node_modules/...问题

项目场景:vue3+ts+vite项目打包问题描述errorduringbuild:RollupError:"default"isnotexportedby"node_modules/vue/dist/vue.runtime.esm-bundler.js",importedby"node_modules/@kangc/v-md-editor/lib/codemirror-editor.js".aterror(file:///D:...原因分析:vite不支持commonjs语法,需要使用@rollup/plugin-commonjs插件,用于将CommonJS模块转换为ES6模块的Rollup

This modules directory was created using the following registries configuration: {“default“:“https:/

Thismodulesdirectorywascreatedusingthefollowingregistriesconfiguration:{"default":"https://registry.npm.taobao.org/"}.Thecurrentconfigurationis{"default":"https://registry.npmjs.org/"}.Torecreatethemodulesdirectoryusingthenewsettings,run"pnpminstall".运行pnpm报错,原因:发布npm时候换了官方镜像。解决办法:修改回淘宝镜像:npmconfigs

java - 了解 Hibernate hibernate.max_fetch_depth 和 hibernate.default_batch_fetch_size

Hibernatedocumenation给出了一些Hibernate配置属性。其中,hibernate.max_fetch_depthSetsamaximum"depth"fortheouterjoinfetchtreeforsingle-endedassociations(one-to-one,many-to-one).A0disablesdefaultouterjoinfetching.e.g.recommendedvaluesbetween0and3hibernate.default_batch_fetch_sizeSetsadefaultsizeforHibernatebat

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compil

原因:maven-compliler-plugin版本与maven版本不一致,Maven版本太低或maven-compiler-plugin版本过高解决方法:①降低maven-compliler-plugin版本,修改pom.xml中插件maven-compliler-plugin配置版本如下:(本人使用的是maven3.6.1,所以修改maven-compliler-plugin版本为3.1.0。 org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugin

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.

执行启动项目命令时,出现BREAKINGCHANGE:webpack<5usedtoincludepolyfillsfornode.jscoremodulesbydefault。。。报错,原因是由于在webpack5中移除了nodejs核心模块的polyfill自动引入,所以需要手动引入解决方案:1.安装npminstallnode-polyfill-webpack-plugin2.然后在vue.config.json中添加:constNodePolyfillPlugin=require('node-polyfill-webpack-plugin')configureWebpack:{ plu

启动jar修改端口server.port的方法

1.配置文件application.properties/application.ymlserver.port=80802.java启动命令以应用参数的方式java-jar--server.port=8080以JDK参数的方式java-Dserver.port=8080-jar3.环境变量SERVER_PORTLinux:SERVER_PORT=8080java-jarWindows:SETSERVER_PORT=8080java-jar4.环境变量SPRING_APPLICATION_JSONSPRING_APPLICATION_JSON='{"server.port":8080}'java

from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories报错解决方案

最近升级Maven到3.8.1后,mvn编译的时候总是提示拉不到依赖,报错:Couldnotvalidateintegrityofdownloadfromhttp://0.0.0.0/…关键字maven-default-http-blocker。原因如果使用HTTP协议下载依赖,可能会导致中间人攻击。比如,本来想下载一个nacos-client的,结果下载的结果中被插入了恶意代码,然后开发人员运行了一下,黑客就能获得开发人员的计算机控制权了。所以Maven3.8.1就禁止了所有HTTP协议的Maven仓库。详情见Maven3.8.1的发布日志日常开发中,我们经常会用到公司内部的maven仓库。