随笔分类 -  java

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

点击右上角即可分享
微信分享提示