#LT

shell用法 (cat << EOF)

下面的语句会创建不存在的secure.config,如果存在直接追加,然后把多行内容:[database]       password=gerrit写入文件secure.config cat>>secure.config<...
代码星球 代码星球·2020-04-06

JavaScript的filter用法

Js的有些操作会改变原来的对象;有些操作则不会改变原来对象。数组的filter方法就不会改变原来数组 利用filter,可以巧妙地去除Array的重复元素:'usestrict';varr,arr=['apple','strawberry','banana','pear','apple','orange','...
代码星球 代码星球·2020-04-06

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

一、背景  最近的项目在用maven进行install的时候,发现老师在控制台输出警告:[WARNING]Usingplatformencoding(UTF-8actually)tocopyfilteredresources,i.e.buildisplatformdependent!虽然并不影响项目的正常运行和inst...

Please configure Spring facet or use 'Create Default Context' to add one including all unmapped files.

  有时候我们刚进入IntellijIDEA时会出现这样一个情况,原因是IDEA没有找到spring的配置文件,我们需要添加spring文件给idea管理  参考:1、https://www.jetbrains.com/help/idea/2018.1/spring-support.html?utm...

PullToRefreshListView 进入界面不能立即显示刷新控件的bug 解决方案

1、首先定位到PullToRefreshListView.java这个文件2、找到onRefreshing(finalbooleandoScroll)方法@OverrideprotectedvoidonRefreshing(finalbooleandoScroll){/***Ifwe'renotshowingtheRe...

ListView onItemClick(AdapterView<?> parent, View view, int position, long id)参数详解

publicvoidonItemClick(AdapterView<?>parent,Viewview,intposition,longid){parent.getAdapter().getItem(position);(CircleImageView)view.findViewById(R.id.img_...

PullToRefreshListView手动刷新问题

1、第一次进入界面刷新无效,需要延时刷新newHandler().postDelayed(newRunnable(){@Overridepublicvoidrun(){//TODO自动生成的方法存根nearbyBusinessListView.setRefreshing(true);}},200);2、改变条件需要再次...

onActivityResult不被执行的问题。

1、首先,返回的Activity必须使用startActivityForResult启动。2、其次,在返回的Activity中必须保证setResult方法在finish方法之前执行,否则onActivityResult不会执行。  由A启动B,在由B返回A时,执行过程如下:  B---onBackPressed  B...

Required MultipartFile parameter 'file' is not present

在写一个api的接口时,需要调用者上传文件,类型为:MultipartFile。我在使用postman测试时,服务器报错:具体的错误信息为:HTTPStatus400-RequiredMultipartFileparameter'files'isnotpresenttypeStatusreportmessageRequ...

IDEA启动Springboot时,解决报错java.lang.NoClassDefFoundError: javax/servlet/Filter

如下所示,将spring-boot-starter-tomcat依赖中的<scope>provided</scope>注释掉<dependency><groupId>org.springframework.boot</groupId><artifactI...

java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>()

这个问题好奇怪,出现这个错误是通用Mapper初始化的错误,排查的方向就是往这个方向,可能的情况有以下几种:1.jar包冲突<dependency><groupId>tk.mybatis</groupId><artifactId>mapper</artifactId...

org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.HashMap

这样的配置有问题吗?<selectid="getFreightCollectManagementList"resultMap="java.util.HashMap"parameterType="com.rms.providers.dto.AccountingPayableDto"> 有的,出现my...

java.lang.NoClassDefFoundError: org/springframework/boot/context/embedded/FilterRegistrationBean

昨天还好好的,今天我的springboot项目就不能正常运行了!出现:018-07-0610:01:41.776WARN[mq-service,,,]7---[main]ationConfigEmbeddedWebApplicationContext:ExceptionthrownfromLifecycleProces...

<转载> 22种代码味道(Martin Fowler与Kent Beck) http://blog.csdn.net/lovelion/article/details/9301691

MartinFowler在Refactoring:ImprovingtheDesignofExistingCode(中译名:《重构——改善既有代码的设计》)一书中与KentBeck一起总结了22种代码坏味(BadSmellsinCode),因为Sunny这段时间正在做一些与代码味道自动识别与自动...

<转载> nginx服务器安装及配置文件详解 https://segmentfault.com/a/1190000002797601

nginx在工作中已经有好几个环境在使用了,每次都是重新去网上扒博客,各种编译配置,今天自己也整理一份安装文档和nginx.conf配置选项的说明,留作以后参考。像负载均衡配置(包括健康检查)、缓存(包括清空缓存)配置实例,请参考 http://segmentfault.com/a/1190000002873...
首页上一页...117118119120121...下一页尾页