Wesley13 Wesley13
2年前
java collection implode
WithJava8youcandothiswithoutanythirdpartylibrary.IfyouwanttojoinaCollectionofStringsyoucanusethenewString.join()method:List<StringlistArrays.asLi
Wesley13 Wesley13
2年前
java.lang.ClassFormatError解决办法
严重: Error configuring application listener of class com.sun.faces.config.ConfigureListenerjava.lang.ClassFormatError: Absent Code attribute in method that is not native or
Wesley13 Wesley13
2年前
android隐藏以及显示软键盘以及不自动弹出键盘的方法
1、//隐藏软键盘((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(WidgetSearchActivity.this.getCurrentFocus().getWindowToken(),InputMe
Wesley13 Wesley13
2年前
java.lang.reflect.Method.getAnnotation()方法示例【通过反射获取到方法对象再获取方法对象上的注解信息】
转:java.lang.reflect.Method.getAnnotation()方法示例(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.yiibai.com%2Fjavareflect%2Fjavareflect_method_getannotation.html)
Stella981 Stella981
2年前
PHP导入导出EXCELl,CSV
PHP导入导出Excel,CSVHTML<formaction"{:U('Admin/Unit/importcsv')}"method"post"name"myform"id"myform"enctype"multipart/formdata"<input
Easter79 Easter79
2年前
Spring之@Transactional 注解配置详解
@Target({ElementType.METHOD,ElementType.TYPE})@Retention(RetentionPolicy.RUNTIME)@Inherited@Documentedpublic@interfaceTransactional{@AliasFor("
Stella981 Stella981
2年前
Register native method
Registernativemethod数据类型和methoddescriptor使用JNI时,为了使得虚拟机可以找到在C/Ccode中定义的native方法,有两种机制可以用,一种是通过为native方法以特定格式命名来实现,另外的一种是所谓的JNI\_OnLoad机制。更多信息,可参考《androidapp中使用JNI》(h
Stella981 Stella981
2年前
Spring boot method interceptor
概述需要对某些service方法添加日志和监控报警.找了好长时间,添加过程如下:1.编写@LogAndWarn注解2.编写拦截器LogAndWarnInterceptor3.编写切入点配置LogAndWarnAdviser4.在对应Service类或方法加上@LogAndWarn注解
Stella981 Stella981
2年前
CAS 实现站内单点登录及实现第三方 OAuth、OpenId 登录(二)
一、登录表单<form:form id"loginForm" method"post" commandName"${commandName}" htmlEscape"true"    <form:errors path"" element"em" cssClass"" /    <c:if t
Stella981 Stella981
2年前
Dalvik虚拟机java方法执行流程和Method结构体分析
Method结构体是啥?在Dalvik虚拟机内部,每个Java方法都有一个对应的Method结构体,虚拟机根据此结构体获取方法的所有信息.Method结构体是怎样定义的?此结构体在不同的android版本稍有变化,但是结构体前面比较重要的一部分(从clazz到nativeFunc)完全没有变化.以下是android4.4.2\_r2的Me