- 博客(23)
- 收藏
- 关注
原创 IDEA里编译报错提示常量字符串过长问题解决
可在Preference->Build,Execution,Deployment->Compiler->Java Compiler菜单,Use compiler下拉列表里,查询资料发现,原因是javac在编译期间,常量字符串最大长度为65534。由默认的Javac修改为Eclipse,程序能成功编译运行。IDEA里编译报错提示常量字符串过长。
2023-08-03 01:59:36
781
原创 获取文件条数
package com.xuexi.test;import java.io.*;public class MyFileUtils { public static void main(String[] args) { String file = "D:\\testFile\\testFile01\\test.txt"; getFileLine(file); } public static int getFileLine(String fileN
2022-05-19 21:48:42
184
原创 把文件打成tar.gz包
pom.xm引入依赖 <!-- 用来打tar.gz包的工具 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> <version>1.9</version> &l.
2022-05-19 21:24:25
652
原创 如何快速创建一个springboot项目
如何快速创建一个spring boot项目 提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加可以使用eclipse或idea快速创建提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录如何快速创建一个spring boot项目一、idea快速创建springboot项目二、sts快速创建springboot项目一、idea快速创建springboot项目file --> new project --> Spring Initializr -
2022-05-15 21:14:22
418
原创 创建简单的spring boot项目
如何创建一个springboot项目创建简单的springboot项目idea创建一个普通maven项目,打开pox.xml,添加springboot依赖配置创建一个启动类创建一个controller就这么简单,现在可以启动了现在我要模拟部署这个项目创建简单的springboot项目idea创建一个普通maven项目,打开pox.xml,添加springboot依赖配置... <parent> <groupId>org.springframework.boot<
2022-05-15 18:20:28
349
原创 Eclipse不经意之间的小坑,main文件夹下还有内容,却不展示出来
解决方法, 右键项目-》Show In-》Project Explorer 就ok了。 之前不显示,是因为 Show In 处于 Package Explorer模式中。 所以没有显示
2019-06-12 09:38:03
270
原创 解决svn软件版本升级后,文件夹及文件失去svn图标(文件夹及文件失去svn版本记录)
1.在工作目录的空白处点击鼠标右键,选择并点击小乌龟上边一行的“SVN Upgrade working copy”。2.会弹出alert框告知升级之后,本地工作目录将生成新的1.8格式版本的SVN。点击“Upgrade the working copy”即可。它会开始升级本地工作目录的元数据,耗时与目录中文件数量成正比。待其结束之后,再刷新一下工作目录,就会发现版本信息又重新回来了...
2019-05-15 11:28:28
977
原创 java局部变量
1.java中局部变量不能被static修饰2.java中局部变量不能被public、private等权限修饰符修饰注:局部变量可以被final修饰
2019-03-20 10:29:45
324
1
原创 oracle和mysql常用字段类型
mysql: 整数:bigint(n)、int(n),小数:decimal(n,m),字符串 :varchar(n) -- (不确定内容长度时用)、char(n) -- (内容固定长度时用),日期时间:date -- (年月日)、timestamp -- (年月日时分秒),oracle:整数:number(n),小数:number(n,m),字符串...
2019-03-18 17:13:07
677
原创 关于“为什么this和super不能同时出现在一个构造函数里面”问题分析
1、首先问题提问不确切 this和super是可以同时出现在一个构造器中的。2.this和super的用法 this和super分别有两种用法,this:①调用本类属性或方法(写法为this.*),②调用本类构造器(写法为this());super:①调用父类属性或方法(写法为super.*),②调用父类构造器(写法为super())。3.情况分析 ①...
2019-03-18 11:24:40
7918
原创 解决svn拉完代码不显示图标的问题
1.电脑桌面win+r输入regedit依次找到HKEY_LOCAL_MACHINE——SOFTWARE——Microsoft——Windows——CurrentVersion——Explorer——ShellIconOverlayIdentifiers2.每一个前边都加六个空格,再加个数字: 1TortoiseNormal、2...Modified、3...Confilct、4...Lock...
2019-02-25 11:09:28
1079
原创 java build path -- source folders on build path
Source folders 下的配置是什么意思:source folders on build path:构建路径上的源文件夹Out folder:.class编译输出的目录,如果不设置output folder,默认输出路径为与.java文件同一个文件夹下。Included:(All)包含classes下的所有东西Excluded: (* * /.svn/**) 去除classes...
2019-01-06 18:38:22
2464
原创 weblogic启动后出现javax.security.auth.login.failedloginexception [security:090304]
weblogic启动后出现javax.security.auth.login.failedloginexception。root exception is javax.security.auth.login.failedloginexception:[security:090304]authentication failed:user weblogic javax.security.auth.lo...
2018-12-28 15:39:08
9480
原创 unable to install breakpoint in com... $ $FastClassBySpringCGLIB$ $12fabbfc due to missing line numb
问题:unable to install breakpoint in com... $ $FastClassBySpringCGLIB$ $12fabbfc due to missing line number attributes.Modify compiler options to generate line number attributes.reason:Absent line num...
2018-12-25 14:48:40
3730
原创 failed to read artifact descriptor for *** 问题解决心得
前提:更换maven版本,今天更换了maven的版本,从3.1.1更换为3.3.9,本来好好地项目更换完版本报了136个错,开头的几个错都是failed to read artifact descriptor for *** 这种错。项目 -- refactor(刷新),项目 -- maven -- update project ,project -- clean 这几种方法都不好使。解决...
2018-12-24 17:13:48
39116
原创 spring mvc 页面跳转及传值
一、后台接收请求1.使用HttpServletRequest获取:@RequestMapping(&amp;amp;quot;/login.do&amp;amp;quot;)public String login(HttpServletRequest request){String name = request.getParameter(“name”)String pass = request.getParameter(“pass”)}...
2018-11-30 10:43:50
1032
原创 HTTP 415 错误 – 不支持的媒体类型(Unsupported media type)
使用springmvc框架,前台form表单提交,然后报错415,解决办法:controller里@RequestMapping去掉consumes参数
2018-11-29 16:55:05
2473
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人