推荐
专栏
教程
课程
飞鹅
本次共找到5974条
写代码
相关的信息
Wesley13
•
4年前
java中静态初始化块的执行顺序
在java中,其应该是先于所有的方法执行。下面是测试代码:1publicclassTest1{2static{3System.out.println("执行静态初始化块test1...");4}5{6System.out.println(
Stella981
•
4年前
Angular单元测试的spyOn使用一例
待测试的Component里有一个Observable数组:!(https://oscimg.oschina.net/oscnet/up61a1b192b6e91b74f749958443bfb1e8.png)通过下面的代码赋值:this.checkoutDeliveryService.getSupportedDeliveryMod
Stella981
•
4年前
Express+Socket.IO 搭建即时聊天
技术栈是:nodejsexpresssocketiobootstrapsqlite 由于初学,代码排版模块化实现的不好,只是提供了一个功能。 源码地址: https://github.com/Qquanwei/Wire(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2
Wesley13
•
4年前
Java中的BigDecimal类和int和Integer总结
前言我们都知道浮点型变量在进行计算的时候会出现丢失精度的问题。如下一段代码:System.out.println(0.050.01);System.out.println(1.00.42);System.out.println(4.015100);System.out.println(1
Wesley13
•
4年前
Java8与迷宫回溯问题
文章目录引入(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fweixin_44575152%2Farticle%2Fdetails%2F109641186%23_2)代码(https://www.oschina.net/
Wesley13
•
4年前
H5图片压缩上传(单图和多图)
H5项目中要用到图片上传,团队成员没有找到解决方案。只能由自己在网上搜索整理一下,如下:直接看代码吧Html页:<!DOCTYPEhtml<htmllang"zhCN"<head<metacharset"utf8"<metahttpequiv"XUACompatibl
Stella981
•
4年前
Python游戏开发——2D小游戏
一、序列应用——猜单词游戏代码:!(https://oscimg.oschina.net/oscnet/up06ce88a4a69332474dd81698407c39e716e.png)运行结果:!(https://oscimg.oschina.net/oscnet/upe946d71b5ee8018
Wesley13
•
4年前
Java连接excel实现:通过姓名查找id和通过id查找姓名
注意每个方法结束都要关闭workbook;还有getIdbyname()方法中字符串flag与name的比较,一定要用equals()方法!!!;剩下的不多解释,注释都在代码中:importjava.io.FileInputStream;importjava.io.IOException;importjava.i
Stella981
•
4年前
Spring Security使用详解8(配置多个HttpSecurity)
在之前的文章中我们都只配置一个HttpSecurity,如果业务比较复杂,我们也可以配置多个HttpSecurity,实现对WebSecurityConfigurerAdapter的多次扩展。八、配置多个HttpSecurity1、样例代码(1)配置多个HttpSecurity时,MultiHttpSecurity
宙哈哈
•
2年前
KgCaptcha接入汇总
最近有在用一款好玩的验证码产品,乐于探索的我,决定从不同的语言去探索这款验证码。KgCaptcha支持PHP、Python、Java、C的接入。下面是我接入过程记录中的代码。
1
•••
356
357
358
•••
598