
Java
文章平均质量分 52
weixin_45154474
这个作者很懒,什么都没留下…
展开
-
如何为Java程序中的main方法传递参数?
相信很多人都会为Java中main方法中的参数而感到好奇。一般情况下,main方法中的形参args都是没有使用的,但是倘若我们需要为main方法的形参赋值呢,又该如何?1、使用eclipse首先写一段简单的测试代码,功能极其简单,只是将main方法的参数一一打印出来。public class Test1 { public static void main(String[] args) { // TODO Auto-generated method stub for (int i = 0;原创 2021-03-24 19:05:05 · 417 阅读 · 0 评论 -
Vue+ElementUI+SpringBoot上传图片到static静态文件夹下并回显
使用ElementUI和SpringBoot,上传文件将变得十分轻松。1、 ElementUI已经封装好了上传图片的组件。首先根据ElementUI官网给出的demo,编写前端页面。直接copy啦☺ <el-upload class="avatar-uploader" <!--后台请求的参数名,很重要,不写后台就拿不到数据了--> name=...原创 2020-03-11 19:02:58 · 3790 阅读 · 9 评论 -
问题:java.lang.IllegalStateException: Could not load CacheAwareContextLoaderDelegate
运行SpringBoot项目的测试方法时,出现如下错误:java.lang.IllegalStateException: Could not load CacheAwareContextLoaderDelegate [class org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]at or...原创 2020-03-04 09:41:06 · 9770 阅读 · 3 评论 -
问题:Cannot instantiate object of type null at org.mybatis.generator.internal.ObjectFactory...
今天在学习MyBatis的逆向工程,MyBatis Generator报错:Exception in thread “main” java.lang.RuntimeException: Cannot instantiate object of type nullat org.mybatis.generator.internal.ObjectFactory.createInternalObjec...原创 2020-02-26 15:39:17 · 1344 阅读 · 3 评论 -
问题:java.lang.AbstractMethodError:Method com/mysql/jdbc/ResultSet.isClosed()Z is abstract
使用mybatis 3.5.2的时候遇到了问题:java.lang.AbstractMethodError:Method com/mysql/jdbc/ResultSet.isClosed()Z is abstractat org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleRowValuesForSimpleR...原创 2020-02-25 10:26:26 · 2362 阅读 · 0 评论