随笔分类 - java
摘要:转发自:https://www.cnblogs.com/logsharing/p/8448446.html GET和POST是HTTP请求的两种基本方法,要说它们的区别,接触过WEB开发的人都能说出一二。 最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。 你
阅读全文
摘要:点击进入Edit Configurations,在VM Options位置输入 -Dcom.sun.management.jmxremote.local.only=false ,之后点击OK即可 参考:https://blog.csdn.net/weixin_45948019/article/det
阅读全文
摘要:<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
阅读全文
摘要:java.lang.StackOverflowError at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader
阅读全文
摘要:org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor fo
阅读全文
摘要:无效的绑定 发现target文件夹没有mapper映射文件 参考https://blog.csdn.net/Hello_World_QWP/article/details/79030823把下面代码放到pom.xml中后不起作用 <build> <resources> <resource> <dir
阅读全文
摘要:写一个log4j2.xml文件放到src中的resources中 <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Appenders> <Console name="Console" target="SYST
阅读全文
摘要:web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc
阅读全文
摘要:刷新maven之前没问题,刷新之后运行项目就报404 解决办法 打开file中的project structure 点击artifacts,把output directory的路径设置为项目中的web目录的路径 参考:https://www.jianshu.com/p/4aac13b3d29a
阅读全文
摘要:警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error c
阅读全文
摘要:System.console().readPassword()在idea中运行出现空指针异常 Console cons = System.console(); char[] chars = cons.readPassword(); String s=new String(chars); System
阅读全文
摘要:import java.io.*; public class E3 { public static void main(String[] args) { File file = new File("C:\\Users\\Administrator\\Desktop", "e3.txt"); byte
阅读全文
摘要:File file=new File("C:\\Users\\Administrator\\Desktop","e1.txt"); System.out.println(file.exists()); 这段代码输出的是false File 类是对文件系统的映射 并不是硬盘上真实的文件,所以 new
阅读全文