这两天在做微信公众号,记录一下怎么和微信公众号对接。 首先,当然要申请一个微信公众号了,登录公众号进入首页,然后找到 开发-->基本配置 里面有一个服务器配置。这个是需要和我们的服务器对接的。 创建一个asp.net 应用程序,创建一个api控制器,代码如下: publice static cals ...
分类:
微信 时间:
2021-03-11 11:44:02
阅读次数:
0
java5引入了一种主要用于**数组和集合**的增强for循环 格式 for(声明语句 : 表达式){ //代码语句 } 一般而言用于数组的遍历会更加简便 //增强for循环 public class A7 { public static void main(String[] args) { int ...
分类:
其他好文 时间:
2021-03-10 13:41:12
阅读次数:
0
1.ReentrantLock 给类文件加锁,实现类似synchronized(class)的功能 核心是类文件中,使用static修饰的reentrantLock对象 public class SourceCache { public static final Lock reentrantLock ...
分类:
其他好文 时间:
2021-03-10 13:38:38
阅读次数:
0
//while循环 public class A4 { /*计算0到100的奇数和偶数的和 用while或for循环输出1-1000之间能被5整除的数,并且每行输出三个 打印九九乘法表 */ public static void main(String[] args) { //计算0到100的奇数和 ...
分类:
其他好文 时间:
2021-03-10 13:26:39
阅读次数:
0
//用while或for循环输出1-1000之间能被5整除的数,并且每行输出三个 public class A5 { public static void main(String[] args) { for (int i = 1; i <= 1000; i++) { if (i%5==0){ Sys ...
分类:
其他好文 时间:
2021-03-10 13:26:22
阅读次数:
0
顺序语句 案例 package com.bk201.struct; public class ShunXuDemo { public static void main(String[] args) { System.out.println("H"); System.out.println("e"); ...
分类:
其他好文 时间:
2021-03-10 13:13:09
阅读次数:
0
public class HttpServerStart { public static volatile boolean flag = false ; public static void start() { int port = 8099; EventLoopGroup bossGroup = ...
分类:
Web程序 时间:
2021-03-10 12:59:52
阅读次数:
0
在学习过程中敲如下的一段代码: public class example4{ public static void main(String[] args){ int n=9; while(n>6){ System.out.println("n = "+n); n--; } } } 文件名为 exam ...
分类:
编程语言 时间:
2021-03-09 13:56:20
阅读次数:
0
数组声明创建 声明数组变量,两种方法 int[] num; int num[]; 使用 new 创建数组 num = new int[arraySize]; 可以同时进行声明和创建数组 int[] num = new int[arraySize]; 数组初始化 静态初始化 int[] a = {1, ...
分类:
编程语言 时间:
2021-03-09 13:55:36
阅读次数:
0
方法如下: 1. 写好功能工具类,如: public class Hello { public static void main(String[] args) throws Exception { Hello hello = new Hello(); hello.sayHello("word. bi ...
分类:
编程语言 时间:
2021-03-09 13:53:56
阅读次数:
0