Java技术
颖灵
这个作者很懒,什么都没留下…
展开
-
This application has no explicit mapping for /error解决
This application has no explicit mapping for /error解决SpringBoot官方推荐使用Thymeleaf模板引擎,默认都是使用Thymeleaf模板引擎的,看自己是否导入了Thymeleaf依赖,没有导入Thymeleaf依赖,也会报404错误<dependency> <groupId>org.springframework.boot</groupId> <arti...原创 2020-07-31 01:36:02 · 2082 阅读 · 3 评论 -
IDEA创建springboot 报错 Spring Initializr Error
解决方法如下:Initialization failed for 'https://start.spring.io'Please check URL, network and proxy settings.Error message:Cannot download 'https://start.spring.io': Status: 403解决办法:不要default 选择custom 填写 把http://start.spring.io/ 多尝试几次...原创 2020-07-16 21:57:33 · 1625 阅读 · 0 评论 -
java在win10下监控指定文件夹的窗口,如果打开,则关闭
要实现监听win10的窗口信息,一旦有被指定的文件夹被打开,则直接关闭,这里注意CloseWindow、DestroyWindow原理,不能关闭其他程序的窗口进程,java由于JDK版本问题 引入的JNA一直报错,务必注意 引入包的版本 jna-platform-5.5.0.jar jna-5.5.0.jar JKD1.8问题:import com.sun.jna.Native;im...原创 2020-03-24 00:01:07 · 945 阅读 · 0 评论 -
NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;) 报错
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library; at com.sun.jna.platform.win32.User32.<cl...原创 2020-03-22 22:04:01 · 8644 阅读 · 4 评论 -
JAVA——File.renameTo 和 Filesystem.rename方法 浅析
public boolean renameTo(File dest) rennameTo方法在使用过程中需要注意使用环境:1. 如果File dest 已存在,重命名失败2. 如果File srcFile已被打开,重命名失败Filesystem.rename(File file1,File file2)WinNTFileSystem.rename nativepriv...原创 2020-03-03 19:17:23 · 1001 阅读 · 0 评论 -
Json错误处理 整理中
Json在使用前 需要关联一下包类 json-lib-2.2.3-jdk15.jarcommons-beanutils-1.7.0.jarcommons-httpclient-3.1.jarcommons-lang-2.3.jarcommons-logging-1.1.1.jarcommons-collections-3.2.1.jarezmorph-1.0.3.原创 2015-11-19 14:46:03 · 644 阅读 · 0 评论 -
JavaWeb:java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider
解决方法如下:原创 2015-10-13 11:19:28 · 8599 阅读 · 1 评论 -
Mysql: Cannot create PoolableConnectionFactory (Communications link failure
严重: Servlet.service() for servlet [LoginServlet] in context with path [/ctrd] threw exceptionorg.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exceptio原创 2015-11-12 11:30:25 · 1607 阅读 · 0 评论