自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

_

  • 博客(65)
  • 收藏
  • 关注

原创 【反编译APK】

apktool官网 https://apktool.org/docs/install/1 apktool.jar,apktool.bat,apkName.apk放到反编译目录2 cmd -> apktool d apkName 获得 apkName目录。

2023-09-02 14:57:27 141

原创 mybatis plus

文章目录查询聚合函数mapper 层 选装件查询聚合函数 //查询 QueryWrapper<[tableObj]> Wrapper = new QueryWrapper<>(); Wrapper.select("min([field])","max([field])"); List<Map<String, Object>> maps = Mapper.selectMapsfWrapper);

2022-01-27 10:32:25 267

原创 汇编语言第二版

文章目录5(5)5(5)assume cs:codea segment db 1,2,3,4,5,6,7,8a endsb segment db 1,2,3,4,5,6,7,8b endsc segment db 0,0,0,0,0,0,0,0c endscode segmentstart: ;setting Segment register mov ax,a mov ds,ax mov ax,b mov es,ax mov ax,c mov ss,a

2021-09-21 09:48:48 161

原创 permissions

文章目录varPermissionsService := TPermissionsService.DefaultService;//异步方法,需要等待权限的处理在TRequestPermissionsResultEvent内处理 PermissionsService.RequestPermissions(const APermissions: TArray<string>; const AOnRequestPermissionsResult: TRequestPermission

2021-07-20 06:10:38 213

原创 DELPHI WEB

文章目录创建REST组件连接配置添加参数执行请求创建REST组件 RESTClient := TRESTClient.Create(self); RESTRequest := TRESTRequest.Create(self); RESTResponse := TRESTResponse.Create(self); RESTRequest.Client := self.RESTClient; RESTRequest.Response := self.RESTResponse;连接

2021-07-08 23:53:31 160

原创 Stream

//获取流 Stream stream = list.stream(); //非终结方法 //从前取 stream.limit(1); //跳过 stream.skip(1); //过滤 stream.filter(o -> o == ""); //遍历对象加工 stream.map(o->function(o)); ...

2021-05-13 17:13:17 45

原创 delphi BUGs

文章目录包含MainMenu的TForm只能打开一次包含MainMenu的TForm只能打开一次TForm.FormClose的关闭行为改成Action := TCloseAction.caFree;procedure Form.FormClose(Sender: TObject; var Action: TCloseAction);begin Action := TCloseAction.caFree;end;...

2021-03-07 05:29:29 106

原创 text文件操作

文章目录unit Unit1;interfaceuses FMX.Forms, FMX.Dialogs, FMX.Memo;type TCustomForm = class(TForm) Memo: TMemo; SaveDialog: TSaveDialog; OpenDialog: TOpenDialog; procedure ASaveExecute(Sender: TObject); procedure AOpenExecute(Send

2021-01-29 16:45:57 96

原创 合并排序

public class MergeSort { public static int[] mergeSort(int[] arr) { mergeSort(arr, 0, arr.length - 1); return arr; } public static void mergeSort(int[] arr, int p, int r) { //数组只剩下一个元素时为已排序数组 if (r != p) {

2020-11-26 23:32:05 175

原创 插入排序

public class InsertionSort { public static int[] insertionSort(int[] arr) { //O(n^2) //每次循环取出后一位插入已排序数组 for (int i = 1; i < arr.length; i++) { //n //取出插入值 int key = arr[i]; //n-1

2020-11-25 18:38:44 46

原创 log4j

文章目录pom.xmllog4j.properties输出方式pom.xml <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version></version> </dependency>log4j.properties

2020-10-30 11:35:22 89

原创 JasperReport

文章目录编译模板导入字体jasperreports_extension.propertiesfonts.xml编译模板导入字体jasperreports_extension.propertiesnet.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory#xml位置net.sf.ja

2020-10-22 22:48:57 139

原创 shardingsphere

文章目录pom.xmlapplication.ymlpojopom.xml <!-- for spring boot --> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId>

2020-09-07 11:06:04 153

原创 动态代理

文章目录JDK动态代理ProxyInvocationHandler调用CGLIBProxyInterceptor调用JDK动态代理通过多态调用,需要有接口ProxyInvocationHandler@AllArgsConstructorpublic class ProxyInvocationHandler implements InvocationHandler { //实际调用的实现类,用多态调用 private ServerInterface serverInterface;

2020-09-04 10:56:28 69

原创 Seata

文章目录pom.xmlapplication.ymlresources/registry.conffile.confDataSourceProxyConfig数据库servicepom.xml开启全局事务的服务和调用的服务都要有依赖 <dependencyManagement> <dependencies> <dependency> <groupId>com.alibaba.c

2020-09-03 23:26:08 103

原创 jwt

文章目录pom.xmlUtils.classpom.xml自动导的包缺依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>RELEASE</version> </dependency>Ut

2020-08-23 05:10:09 111

原创 ObjectMapper

ObjectMapper objectMapper = new ObjectMapper(); //实体类转json String string = objectMapper.writeValueAsString(Object); //json转实体类 Object object = objectMapper.readValue(string, Object.class); //json转List Li..

2020-08-21 11:55:46 129

原创 RSA

//生成算法 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); //keyPairGenerator.initialize()不传入SecureRandom会随机生成,在多服务器时传入固定SecureRandom SecureRandom secureRandom = new SecureRandom("fuck".getBytes()); //..

2020-08-21 04:04:14 90

原创 springfox-swagger

文章目录pom.xmlconfigcontrollerpom.xml<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version></version> </dependency>

2020-08-15 04:32:51 253

原创 Hibernate Validator

文章目录pojocontrollerpojo@Datapublic class Pojo { @NotNull //数字范围 @Min(1) @Max(10) //长度 @Length(min = 1,max = 10) @Pattern(regexp = "pattern",message = "报错返回信息") private String filed;}controller @GetMapping("/") p

2020-08-14 09:10:11 86

原创 springframework

文章目录RestTemplate restTemplate = new RestTemplate();//请求头设置参数格式HttpHeaders httpHeaders = new HttpHeaders();httpHeaders.setContentType(MediaType.APPLICATION_JSON);//http实体HttpEntity<String> httpEntity = new HttpEntity<>(String jsonStr,htt

2020-08-01 01:04:25 182

原创 SpringCloud

文章目录Eurekapom.xml启动类Eurekapom.xml<!--springBoot项目要继承spring-boot-starter-parent--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> &l

2020-07-24 20:07:55 534

原创 URLConnection

文章目录try { //获取连接对象 HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(String url).openConnection(); //设置请求方法 httpURLConnection.setRequestMethod(String method); //添加请求参数 httpURLConnection.setRequestProperty("Co

2020-06-20 08:39:25 93

原创 Vue

安装npm initnpm install vue数据绑定<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title></title> <script src="node_modules/vue/dist/vue.js"></script></head><body><div id="i

2020-06-13 03:04:20 165

原创 SpringBoot

文章目录添加依赖启动类静态资源目录SpringMvc配置整合Mybatis整合Junit整合RedisSpringBootServletInitializer添加依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version></version>

2020-06-12 04:32:12 88

原创 YAML

文章目录*.yml注入*.ymlprefix: key1: value1 key2: value2 #对象 object: field1: value field2: value #数组 array: - value1 - value2 # 对象数组 objects: #对象1 - field1: value1 field2: value2 #对象2 - field1: value1 field2: value2注入sette

2020-06-12 00:38:56 71

原创 ElasticSearch

文章目录获取传输地址对象创建索引库CURD获取传输地址对象集群名称在直接访问9200端口里Settings settings = Settings.builder().put("cluster.name", "集群名称").build();TransportClient transportClient = new PreBuiltTransportClient(settings);transportClient.addTransportAddress(new TransportAddress(In

2020-06-11 01:29:58 94

原创 RabbitMQ

文章目录创建连接生产者消费者创建连接ConnectionFactory connectionFactory = new ConnectionFactory();connectionFactory.setHost("host");connectionFactory.setPort(5672);connectionFactory.setVirtualHost("/virtualHosts");connectionFactory.setUsername("username");connectionF

2020-06-10 01:25:00 69

原创 Quartz

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframewo

2020-06-09 22:29:11 60

原创 POI

文章目录写文件读文件写文件//创建工作簿,2003版,最多65536条数据Workbook workbook = new XSSFWorkbook(); //使用模板时Workbook workbook = new XSSFWorkbook(InputStream inputStream);//2007版,最多1048576条数据,不支持模板Workbook workbook = new SXSSFWorkbook();//创建工作表 Sheet sheet = workbook.cre

2020-06-09 13:54:04 45

原创 MybatisGenerator

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"><generatorConfiguration&

2020-06-07 01:30:57 40

原创 dubbo

提供者web.xml监听spring配置文件<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"&g

2020-06-06 00:19:35 59

原创 shiro

文章目录web.xmlapplicationContext.xml登录和授权进入controllerCustomRealmCustomCredentialsMatcher验证权限applicationContext.xml中配置方法中加入验证使用注解退出web.xml<filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter

2020-06-01 06:57:28 56

原创 PageHelper

文章目录spring配置使用spring配置sqlSessionFactory下添加plugins属性<bean id="sessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="typeAliasesPackage" value="包.dom

2020-05-30 05:25:30 53

原创 JSP

文章目录作用域指令作用域接口对象作用范围PageContextpageContext一个用户访问的一个页面HttpServletRequestrequest一个用户的一次请求HttpSessionsession一个用户的所有请求ServletContextapplication所有用户的所有请求对象.作用域方法void setAttribute(“key”,Object object)添加键值对Object ge

2020-05-29 20:14:26 54

原创 整合SSM

文章目录web.xmlspringMVC.xmlapplicationContext.xmlweb.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://jav

2020-05-27 05:18:49 55

原创 springMVC

文章目录web.xmlspringMVC.xmlweb.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javae

2020-05-27 04:56:46 56

原创 Spring

文章目录实例化无参构造方法实例工厂方法实例化无参构造方法<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans

2020-05-26 03:36:22 50

原创 Nginx

外部配置文件/etc/nginx/nginx.confhttp{ include 文件路径;}反向代理upstream 代理名 { server服务器地址和端口号;}

2020-05-20 02:22:21 56

原创 ThreadLocal

文章目录创建容器操作ThreadLocal在同一个线程传递某个对象创建容器ThreadLocal<Object> threadLocal = new ThreadLocal<>();操作ThreadLocalvoid set(T value)对象放入容器T get()从容器中取出对象void remove()从容器中删除对象...

2020-05-16 21:35:39 44

空空如也

空空如也

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

TA关注的人

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