- 博客(27)
- 资源 (3)
- 收藏
- 关注
原创 idea无法启动问题
idea无法启动问题,debugger、tomcat Localhost、tomcat Catalina Log无报错信息,只有idea左下角有一行报错信息。1.当我用debugger启动时,idea左下角报错Error running ‘tomcat-8.5.31’: Unable to open debugger port (127.0.0.1:53681): java.net.SocketException “Interrupted function call: accept failed”2.
2022-03-29 13:37:25
1647
原创 SpringContextUtil.getBean找不到类报错问题
例如aaa.java的SpringContextUtil.getBean找不到类报错public static String defaultRoleId;static {if(defaultRoleId == null){RoleManagerDao roleDao = SpringContextUtil.getBean(RoleManagerDao.class);defaultRoleId = roleDao.getDefaultRoleid();}}2.在aaa.java类上加注解**.
2021-11-25 15:50:19
2591
原创 Java代码实现把文件A的内容追加到文件B中
//文件A中的内容复制到文件B中;然后删除文件A public static void copyFile(String path1,String path2){ try { File file = new File(path1); FileInputStream fis = new FileInputStream(file); BufferedReader in = new BufferedReader(...
2021-04-12 19:33:06
772
原创 datagrid设置行高
.datagrid-header-row .datagrid-cell { display: flex; justify-content: center; align-items: Center; height: 40px;}.datagrid-row { height: 40px;}
2021-04-01 18:54:02
822
原创 mysql5.6.22升级到8.0.17项目启动报错问题
1.在pom.xml添加mysqlmysql-connector-java8.0.172.修改jdbc参数将jdbc:mysql://127.0.0.1:3306/dbyndw?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull修改为jdbc:mysql://127.0.0.1:3306/dbyndw?characterEncoding=UTF-8&zeroDateTimeBehavior=convertT
2020-07-24 13:40:32
211
原创 树形结构叶子节点太大时,Linux系统tomcat内存溢出解决办法
依次打开/usr/local/tomcat-8.5.54/conf文件夹,打开server.xml,将注释内容更改为下面的参数即可<!--<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />--><Connector port="8080" protocol="HTTP/1.1"
2020-07-21 16:47:17
306
原创 查询数据库记录、容量
--查询数据库 记录 容量 selecttable_schema as '数据库',sum(table_rows) as '记录数',sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)',sum(truncate(index_length/1024/1024, 2)) as '索引容量(MB)'from information_schema.tablesgroup by table_schemaorder by sum(data...
2020-05-25 11:10:47
347
原创 项目部署到Linux服务器时内存溢出的解决的办法(项目在myeclipse没有内存溢出)
我的项目启动时正常,在系统导入文件时报内存溢出的错误。解决方法如下:修改Tomcat的内存配置,打开$TOMCAT_HOME/bin/catalina.sh文件(Windows系统是catalina.bat文件),在JAVA_OPTS参数上添加内存参数设置即可。完整的JVM参数设置如下所示:Linux安装的是apache-tomcat-9.0.16,JAVA_OPTS参数在257行;...
2019-04-30 10:27:56
753
原创 解决Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
查看服务器日志报错提示:Mysql You can change this value on the server by setting the max_allowed_packet’ variable. Packet for query is too large (6933997 > 4924304). You can change this value on the server by ...
2019-04-10 16:05:06
514
根据word文档目录结构生成对应的序号.java
2020-03-18
bat脚本运行.sql文件.zip
2020-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人