1:添加Nlog的组件 直接在NuGet里面搜索NLog.Web.AspNetCore 2:然后就是配置服务 public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build() ...
分类:
Web程序 时间:
2021-04-27 14:26:50
阅读次数:
0
自增,自减&&逻辑运算符&&位运算符 1 package operator; 2 3 public class Demo4 { 4 public static void main(String[] args) { 5 //++ -- 自增 自减 一元运算符 6 int a=3; 7 8 int b= ...
分类:
编程语言 时间:
2021-04-27 14:20:46
阅读次数:
0
此博客链接: 题解: 找大写26个字母的位置,26个字母可以重复M个 输入为N M,N测试用例个数,M为字母重复个数, 输出字母和处于第几位 代码 public class leetcode { public static void main(String[] args) { Scanner sca ...
分类:
其他好文 时间:
2021-04-27 14:19:47
阅读次数:
0
最近发现我们系统导出excel文件时由于是导出百万级数据导出,速度过慢并且内存占用多,故进行了下面的一次优化。 我们使用apache的poi进行excel文件操作 主要耗时: 1、从数据库得到需要导出的结果集耗时 2、将数据写入excel耗时 优化前 public abstract class Ba ...
分类:
其他好文 时间:
2021-04-26 13:58:43
阅读次数:
0
1. 判断是否是基础数据类型 /** * 判断是否是基础数据类型,即 int,double,long等类似格式 */ public static boolean isCommonDataType(Class clazz){ return clazz.isPrimitive(); } 2、 判断是否是 ...
分类:
其他好文 时间:
2021-04-26 13:54:00
阅读次数:
0
我只发现IOptions的一个用处——方便了在.NET Core应用程序中使用强类型配置。 有如下appsettings.json配置文件 { "topClient": { "serverUrl": "", "appKey": "", "appSecret": "" } } 为此定义了一个配置类To ...
分类:
Web程序 时间:
2021-04-26 13:49:03
阅读次数:
0
完全数 : 其所有因子的的和等于该数(包括1,但是不包括该数字本身) package judgment;/** * 求1~1000的所有完全数 */public class Judgment { public static void main(String[] args) { for (int i ...
分类:
其他好文 时间:
2021-04-26 13:45:19
阅读次数:
0
写一个java文件 public static void main(String[] args) { String str1="abc"; String str2 ="abc"; String str3=new String("abc"); boolean b1= str1==str2; boole ...
分类:
其他好文 时间:
2021-04-26 13:44:32
阅读次数:
0
import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Problem53 { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-04-26 13:44:00
阅读次数:
0
桥接模式 桥接模式结构图: 示例代码: // 桥接角色Message接口 public interface Message { void sendMessage(String message, String toUser); } // 具体Message角色Email public class Em ...
分类:
其他好文 时间:
2021-04-26 13:31:33
阅读次数:
0