摘要: 刷新maven之前没问题,刷新之后运行项目就报404 解决办法 打开file中的project structure 点击artifacts,把output directory的路径设置为项目中的web目录的路径 参考:https://www.jianshu.com/p/4aac13b3d29a 阅读全文
posted @ 2021-10-22 11:50 0牛牛牛 阅读(51) 评论(0) 推荐(0)
摘要: 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error c 阅读全文
posted @ 2021-10-19 11:55 0牛牛牛 阅读(1385) 评论(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牛牛牛 阅读(393) 评论(0) 推荐(0)
摘要: Scanner scanner=new Scanner(System.in); File file=new File("C:\\Users\\Administrator\\Desktop","t1.txt"); String n=null; char[] b=new char[3]; try { F 阅读全文
posted @ 2021-08-24 09:05 0牛牛牛 阅读(205) 评论(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牛牛牛 阅读(116) 评论(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牛牛牛 阅读(922) 评论(0) 推荐(0)