- 博客(8)
- 收藏
- 关注
原创 H5 调用扫一扫识别条形码 并返回内容值
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>扫一扫</title> <script src="../js/jquery.js"></script> <script> $(function(){ // ...
2020-08-26 10:22:59
2120
2
原创 Spring Boot 集成 Zookeeper
提前准备:Spring Boot项目、搭建完成的Zookeeper 虚拟机该文章前面都有写过。直接上代码package com.test.zookeeper;import org.apache.zookeeper.*;import org.apache.zookeeper.data.Stat;import org.junit.Before;import org.junit.Test;import java.io.IOException;import java.util..
2021-04-07 18:56:20
514
原创 linux 安装zookeeper
提前准备:虚拟机一台、zookeeper安装包一份1、连接并登录虚拟机.2、进入 /usr/local/ 目录下lrwxrwxrwx. 1 root root 7 Jan 10 2019 bin -> usr/bindr-xr-xr-x. 4 root root 4096 Jan 10 2019 bootdrwxr-xr-x 19 root root 3180 Apr 7 09:46 devdrwxr-xr-x. 133 root root 8192 A
2021-04-07 18:48:35
183
原创 IDEA 创建Spring Boot 项目
1、创建一个Spring Boot项目 这里我选择了“Web”类别下的“Spring Web Starter”、“Template”类别下的“Thymeleaf”以及“SQL”类别下的“Spring Data JPA”和“Mysql Driver” 一直下一步 完成即可,这样你就得到一个Spring Boot 项目。需要什么依赖直接写到pom.xml文件即可,不再需要每个项目都导入一大堆jar包了。...
2021-04-07 18:19:34
142
原创 小程序轮播图
1、小程序轮播图轮播图涉及的代码涉及到俩个文件代码:1.1:*.wxml文件1.2:*.js文件2、代码演示:2.1:*.wxml代码如下 <!-- 轮播图 --> <view class="page-body"> <view class="page-section page-section-spacing swiper"> <swiper indicator-dots="{{indicatorDots}}"
2021-03-11 14:35:32
164
1
原创 H5文本框只能输入纯数字
手机号码:<input type="type" id="phoneNumber" name="phoneNumber" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')" >
2020-11-18 16:42:25
1260
原创 java中对URL的相互转换
使用URLEncode类将一个URL(http://www.youkuaiyun.com) 转换成(http%3A%2F%2Fwww.youkuaiyun.com)格式import com.sun.deploy.net.URLEncoder;String a=URLEncoder.encode("http://www.youkuaiyun.com","UTF-8");System.out.println(a);...
2019-06-21 14:27:17
2851
1
原创 java中一个姓名只显示最后一个字其他以*表示
public static void main(String[] args) { // 调用隐藏姓名的方法 String str= "蚂蚁雅黑"; String result = replaceNameX(str); System.out.println("姓名为:"+result); } // 保护...
2019-04-10 14:30:29
5931
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅