自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

翻译 实现EasyExcel对Excel读操作(读操作)

一、实现EasyExcel对Excel读操作1、创建实体类import com.alibaba.excel.annotation.ExcelProperty;public class ReadData { //设置列对应的属性 @ExcelProperty(index = 0) private int sid; //设置列对应的属性 @ExcelProperty(index = 1) private String sname; pub

2020-08-08 15:10:40 3824 1

翻译 实现EasyExcel对Excel写操作(写操作)

一、创建项目,实现EasyExcel对Excel写操作1、创建一个普通的maven项目项目名:excel-easydemo2、pom中引入xml相关依赖<dependencies> <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --> <dependency> <groupId>com.alibaba</groupId>

2020-08-08 15:00:23 1261

翻译 windows下面配置nignx

windows下面配置nignxnignx官网:http://nginx.org/en/download.html

2020-08-08 13:07:31 130

原创 android实现自动打开输入法

//首先使要输入的输入框获取焦点//打开输入法InputMethodManager imm = (InputMethodManager) requireActivity().getSystemService(Context.INPUT_METHOD_SERVICE);//显示输入法在窗口imm.showSoftInput(输入框的id或变量名, 0);//v:actitvity中就是ge...

2020-04-01 12:19:48 208

原创 android动画的简单使用

<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <!-- rotate :旋转动画{ pivotX:设置动画开始时x轴的位置50%就是在x轴的中间位置 pivot...

2020-03-19 12:04:13 93

原创 matplotlib简单用法

import randomfrom matplotlib.font_manager import FontProperties # 字体管理器#设置显示中文font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=15)x = range(2,26,2)y = list()y1 = list()fo...

2020-03-13 11:31:59 95

原创 viewPager获取当前为第几个item

private void autoSwip() {//设置自动滚动 final Handler handler=new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { int c...

2020-03-05 11:26:41 1197 1

原创 notification简单用法

package com.libin.notification;import androidx.appcompat.app.AppCompatActivity;import androidx.core.app.NotificationCompat;import android.app.Notification;import android.app.NotificationManager;...

2020-03-03 17:20:27 171

原创 drawerLayout简单用法

<?xml version="1.0" encoding="utf-8"?> <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p...

2020-03-03 12:10:37 341

原创 popwindow简单用法

package com.libin.popwindow;import androidx.appcompat.app.AppCompatActivity;import android.graphics.drawable.BitmapDrawable;import android.os.Bundle;import android.view.LayoutInflater;import an...

2020-03-02 18:51:53 408

原创 menu简单用法

package com.libin.meun;import androidx.annotation.NonNull;import androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;import android.util.Log;import android.view.Menu;import andro...

2020-03-02 17:05:36 196

原创 viewpager简单用法

import androidx.annotation.NonNull;import androidx.appcompat.app.AppCompatActivity;import androidx.viewpager.widget.PagerAdapter;import androidx.viewpager.widget.ViewPager;import android.graphics...

2020-03-02 16:46:54 186

原创 okhttp上传多个文件

File file = new File("/storage/sdcard/t.png"); File file1 = new File("/storage/sdcard/t.png"); File file2 = new File("/storage/sdcard/t.png"); OkHttpClient client = new OkHttpC...

2020-02-27 22:40:46 2045

原创 okhttp的post请求

OkHttpClient client = new OkHttpClient.Builder() .connectTimeout(3000, TimeUnit.MILLISECONDS) .build(); Id id = new Id(); id.id = "5"; Gson gson...

2020-02-27 22:30:33 188

原创 okhttp文件上传

public void upload(View view){ File file = new File("/storage/sdcard/t.png"); OkHttpClient client = new OkHttpClient.Builder() .connectTimeout(3000, TimeUnit.MILLISECO...

2020-02-27 22:29:47 415

原创 springboot整合shiro

依赖<!--shiro依赖--><dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.4.0</version></dependen...

2020-01-11 16:34:01 71

原创 android实现划动删除记录

layout文件<?xml version="1.0" encoding="utf-8"?><com.libin.finalexam.activity.view.SlidingButtonView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match...

2019-12-27 19:00:26 115

原创 android中实现自定义一个退出的对话框

1.在res目录下创建一个anim目录2.新建一个enter_anim.xml文件,这为对话框进入时的动画<?xml version="1.0" encoding="utf-8"?><!-- 开始动画 android:fromYDelta="-100%": 重手机的头部开始 android:duration = "200": 设置执行的时间--&g...

2019-12-27 16:15:17 325

原创 dubbo在dubbo管理的界面没有出面服务的解决方法

今天在用dubbo的框架的时候测试时dubbo管理的界面没有提供者和消费者,百度发现没有使用注解@refrence和service层没有使用@service(注意这是@service是dubbo包下面的),使用后完美解决...

2019-10-30 18:50:58 355

原创 tk.mapper简单的几个注解

@GeneratedValue(strategy = GenerationType.IDENTITY) @Id @Column private String id; @Column private String attrName; @Column private String catalog3Id; @Column priva...

2019-10-30 18:46:51 991

原创 jsp中出现org.apache.jasper.JasperException: The absolute uri: [http://itcast.cn/common/] cannot be...

今天在运行一个别人的jsp文件时出现org.apache.jasper.JasperException: The absolute uri: [http://itcast.cn/common/] cannot be resolved in either web.xml or the jar files deployed with this application这个错误的主要的原因是你当前的页面所......

2019-07-19 17:11:30 680 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除