E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Implement
使用单例的时候,如果需要清空单例
staticdispatch_once_tonceToken;@
implement
ationTShareActionManager+(instancetype)shareActionManager{staticTShareActionManager
liuzhongyi
·
2023-04-09 13:12
Android使用OpenGL实现相机滤镜
GLSurfaceView继承GLSurfaceView用于展示渲染的画面,并实现GLSurfaceView.Renderer接口publicclassCameraViewextendsGLSurfaceView
implement
sGLSurfaceView.Renderer
itfitness
·
2023-04-09 13:42
1. 多线程场景下数据不安全
直接上代码publicclassMyThread
implement
sRunnable{privateintticket=100;//共享资源@Overridepublicvoidrun(){while(
水无痕simon
·
2023-04-09 11:10
多线程
&
并发编程实战
安全
java
开发语言
springboot jpa 使用uuid生成id
="jpa-uuid",strategy="uuid")@NamedQuery(name="SysF.findAll",query="SELECTsFROMSysFs")publicclassSysF
implement
sSerializable
香至
·
2023-04-09 11:26
springboot
jpa
HashMap源码解析
publicclassHashMapextendsAbstractMap
implement
sMap,Cloneable,Serializable{//序列号privatestaticfinallongserialVersionUID
好奇害死猫o
·
2023-04-09 10:33
分布式job
1、引入jarcom.dangdangelastic-job-lite-core2.1.52、任务逻辑publicclassArchivieJob
implement
sSimpleJob{@Overridepublicvoidexecute
xingcsdnboke
·
2023-04-09 09:58
cluster
分布式
java
数据库
Quartz 单例定时任务
1、引入jar包,继承Job接口,编写需要执行的业务逻辑org.quartz-schedulerquartz2.3.2publicclassDemoJob
implement
sJob{@Overridepublicvoidexecute
xingcsdnboke
·
2023-04-09 09:57
cluster
java
android
开发语言
快速集成百度文字转语音功能(LibBaiduTextToSpeech)
LibBaiduTextToSpeechGitHub项目地址含Demo百度语音合成组件库如何使用一、在app项目build.gradle文件中加入组件库依赖
implement
ation'com.deity.texttospeech
天神Deity
·
2023-04-09 09:16
Failed to start bean 'documentationPluginsBootstrapper'
使用Springboot2.7.0构建项目
implement
ation'mysql:mysql-connector-java'
implement
ation'com.alibaba:druid-spring-boot-starter
谁在烽烟彼岸
·
2023-04-09 08:24
System.out.println()对于内存可见性的影响
群友发了一段代码,说变量没有加volatile,但是依旧可见,代码大致如下:publicclassStopThreadTest
implement
sRunnable{privatebooleanflag=
ssssssnake
·
2023-04-09 07:10
logback 随笔 写入日志
kafka异步日志配置日志写入的话,就从Logger开始吧1.Logger调用Appender插入日志packagech.qos.logback.classic;publicfinalclassLogger
implement
sorg.slf4j.Logger
肯尼思布赖恩埃德蒙
·
2023-04-09 06:30
Java
logback
java
开发语言
nest exception filters异常过滤器练习
ExceptionFilter}from"@nestjs/common"import{formatDate}from"src/utils"@Catch()exportclassHttpExceptionFilter
implement
sExceptionFilter
aminwangaa
·
2023-04-09 06:12
nest
java核心基础--jdk源码分析学习--HashMap
staticclassNode
implement
sMap.Entry{Nodenext;//单链表2.Node的构造函数Node(inthash,Kkey,Vvalue,Nodenext)3.新建无参HashMap
qianggetaba
·
2023-04-09 03:28
java
java
源码
HashMap
面试之JAVA多线程
创建实现类MyThread
implement
sRunnable,先new一个接口类,然后创建Thread类利用构造方法放入实现runnable接口的类Threadthread=newThread(myThread
GoldenCrow
·
2023-04-09 03:09
Python使用Deque
Deque(DoublyEndedQueue)inPythonis
implement
edusingthemodule“collections”.Dequeispreferredoverlistinthecaseswhereweneedquickerappendandpopoperationsfromboththeendsofcontainer
CHNMSCS
·
2023-04-09 02:00
Python3
python
开发语言
后端
CoordinatorLayout分析
publicclassCoordinatorLayoutextendsViewGroup
implement
sNestedScrollingParent2建立依赖onMeasure-》prepareChildren
水清波
·
2023-04-09 02:25
java简单访问chatapt
找到依赖信息.
implement
ation‘com.theokanning.openai-gpt3-java::’在maven库中找到所需版本,在浏览器搜索mvncom.theokanning.openai
原来,你是。。。
·
2023-04-09 02:49
java
gpt-3
LeakCanary 原理详解
debug
Implement
ation'com.squareup.leakcanary:leakcanary-android:2.7'1.基础知识java引用之弱引用WeakReference弱引用,当一个对象仅仅被
dboy_sl
·
2023-04-09 02:15
java 解决定时任务串行问题,增加线程池
publicclassScheduleConfig
implement
sSchedulingConfigurer{@OverridepublicvoidconfigureTasks(ScheduledTaskRegistrartaskRegistrar
zengwenhe1987
·
2023-04-09 02:39
java
java
Recyclerview的使用
recyclerview是GoogleAndroid5.0推出的新控件,所以导入support-v7包要是5.0以上的
implement
ation'com.android.support:appcompat-v7
lllllliudahong
·
2023-04-09 00:08
SpringBoot配置异步任务(@Async)线程池
ThreadFactoryBuilder设置线程名需要引入依赖com.google.guavaguava31.0.1-jre2.编写配置类@Configuration@EnableAsyncpublicclassAsyncConfig
implement
sAsyncConfigurer
tang_xiao_zhuang
·
2023-04-08 22:55
springboot
spring
boot
java
spring
leetcode 206. Reverse Linked List
NULLOutput:5->4->3->2->1->NULLFollowup:Alinkedlistcanbereversedeitheriterativelyorrecursively.Couldyou
implement
both
咿呀咿呀呦__
·
2023-04-08 22:29
Android之Kotlin:Kotlin 使用Retrofit2.0
image.png首先导入gradleRetrofit2.0
implement
ation'com.squareup.retrofit2:converter-gson:2.4.0'//okhttp提供的请求日志拦截器
STE北京老徐
·
2023-04-08 21:34
07.LinkedList与链表
1.ArrayList的缺陷通过源码知道,ArrayList底层使用数组来存储元素:publicclassArrayListextendsAbstractList
implement
sList,RandomAccess
muyierfly
·
2023-04-08 20:19
链表
java
数据结构
大数据 - 从理论到实践
原文:WhatisBigData–Theoryto
Implement
ationJavaCodeGeeks联合创始人ByronKiourtzoglou近日发表文章,从理论到实践剖析了大数据的4个V,并于文章最后分享了
Jason897
·
2023-04-08 19:39
Concept
Android Transform+ASM添加try catch并返回默认值之明白讲义
在build.gradle的dependencies里面添加依赖://使用hunter框架
implement
ation('com.quinn.hunter:hunter-transform:0.9.3'
生椰拿铁锤
·
2023-04-08 19:18
Android Studio 3.5+ 使用androidx的recyclerView
在Androiddevelopers中找到了添加依赖项的方法:dependencies{defrecyclerview_version="1.0.0"
implement
ation"androidx.recyclerview
明早天气不错
·
2023-04-08 18:02
JavaForAndroid11
一、接口1.使用interface定义接口2.接口当中的方法都是抽象方法3.接口当中的方法都是public权限基本语法:1.实现接口使用
implement
s关键字,实现接口必须复写接口里面的所有方法2.
tah
·
2023-04-08 17:00
OC底层04:类的结构
元类先创建一个Person类,然后实例化一个对象,然后用LLDB进行分析@interfacePerson:NSObject@end@
implement
ationPerson@end//main中NSObject
ZAREMYDREAM
·
2023-04-08 17:26
设计模式
interfacePet{publicvoideat();}classDog
implement
sPet{@Overridepublicvoideat(){System.out.print("Dogiseat
凉初透的风
·
2023-04-08 16:37
Could not find any version that matches com.android.support:appcompat-v7:30.+.报错处理方法
.+.OpenFileShowDetailsdependencies{
implement
ationfileTree(dir:'libs',inclu
云水禅心1973
·
2023-04-08 16:51
Spring实现[拦截器+统一异常处理+统一数据返回]
实现一个普通拦截器关键步骤实现HandlerInterceptor接口重写preHeadler方法,在方法中编写自己的业务代码@ComponentpublicclassLoginInterceptor
implement
sHandlerInterceptor
小孙的代码星球
·
2023-04-08 16:46
Spring
Javaweb
JavaEE
spring
java
前端
Jetpack Compose中的导航路由
JetpackCompose中的导航库是由Jetpack库中的Navigation组件库的基础上添加的对Compose的扩展支持,使用需要单独添加依赖:
implement
ation"androidx.navigation
川峰
·
2023-04-08 15:39
Jetpack
Compose
android
Jetpack
Compose
导航路由
Navigation
谈谈NSString的copy和strong
先说说用copy修饰在这里举一个例子@interfaceviewController()@property(nonatomic,copy)NSString*name;//注意这里是用copy修饰的@end@
implement
ationviewController
波妞和酱豆子
·
2023-04-08 14:24
终于有文章讲清楚【工作流引擎和状态机】的区别了
IntroductionWhencompaniesdecideto
implement
asystemthatwillhelpthemmanagebusinessprocesses,theirchoicewillprobablyliebetweenaworkflowengineandastatemachine.Thoughthebehaviorofth
当我谈编程时我谈些什么
·
2023-04-08 14:05
管理工具
2021-05-11 NAT
-
implement
ation:NATroutermust:§outgoingdatagrams:replace(sourceIPaddress,port#)ofeveryoutgoingda
胡糊糊同学
·
2023-04-08 12:08
Android 使用udp发送广播
原因后面会讲到使用到RxJava:
implement
ation'io.reactivex.rxjava2:rxandroid:2.
梦醒了i77
·
2023-04-08 11:57
分析解决sorry, un
implement
ed: non-trivial designated initializers not supported
sorry,un
implement
ed:non-trivialdesignatedinitializersnotsupported这个报错不是说externC就可以解决的,其根源是编译器的支持问题,C使用
junka
·
2023-04-08 11:17
关于类结构的面试题分析
class_getInstanceMethod与class_getClassMethod分析首先定义两个类和方法@interfaceLGPerson:NSObject-(void)sayHello;+(void)sayHappy;@end@
implement
ationLGPerson
spades_K
·
2023-04-08 10:15
Java多线程实例之卖票
publicclassMyThread
implement
sRunnable{//电影票100张privateinttickets=100;@Overridepublicvoidrun(){while(true
程序员的黑洞
·
2023-04-08 09:11
JavaSE
多线程
卖票
java
java基础
一个关于使用String做锁的问题(PS:不要使用string做锁)
wait释放了一个锁,另一个锁并没有释放,但是在运行的时候,没有释放的锁竟然能够获得,示例代码如下:publicclassTestSyncOnString{publicstaticclassWorker
implement
sRunnable
roger_han
·
2023-04-08 09:23
线程
string
thread
JavaSwing实现动态时钟【风格2】
*;importjava.util.Date;publicclassTimeextendsJFrame
implement
sRunnable{privateThread
兴奋的大公狗
·
2023-04-08 08:17
JavaSwing
java
开发语言
初识设计模式 - 适配器模式
具体实现类适配器模式典型的类适配器模式代码示例如下:classAdapterextendsAdaptee
implement
sTarg
csdn_manong1
·
2023-04-08 05:26
设计模式
设计模式
适配器模式
代理模式
如何实现将数据库中的表展示到前端?
实现实体类创建:以订单功能为例子importlombok.Data;importjava.io.Serializable;importjava.util.Date;@DatapublicclassOrder
implement
sSerializable
ProHc
·
2023-04-08 05:44
JAVA
java
spring
jsp
spring boot 第三节 三层架构
voidremove(Useruser);voidupdate(Useruser);UserloadById(Longid);ListloadAll();}publicclassUserDaoImpl
implement
sIUserDao
bluewelkin
·
2023-04-08 05:28
spring
boot
spring
boot
MDC实现全链路调用日志跟踪,排查问题更方便
MDC使用添加拦截器publicclassLogInterceptor
implement
sHandlerInterceptor{@OverridepublicbooleanpreHandle(HttpServletRequestrequest
lfboo
·
2023-04-08 04:36
Android-自定义注解-Java动态代理(Proxy)-基础
你还可以假装发布到github上面,自己
implement
ation,哈哈~~~接着我们再研究下动态代理,然后继续完善下我们的自定义注解。
MonkeyLei
·
2023-04-08 04:09
Gradle 7.0 CataLog
主要用于项目间共享依赖对所有module可见,可统一管理所有module的依赖支持声明依赖bundles,即总是一起使用的依赖可以组合在一起dependencies{
implement
ationlibs.bundles.groovy
Guow110
·
2023-04-08 03:22
sofa-runtime插件
sofa-runtime整体框图流程SofaRuntimeActivator插件启动器Biz模块事件监听处理SofaEventHandler对应的代码如下:publicclassSofaEventHandler
implement
sEventHandler
瑜骐
·
2023-04-08 03:56
【Go实现】实践GoF的23种设计模式:代理模式
Go实现】实践GoF的23种设计模式:访问者模式简单的分布式应用系统(示例代码工程):https://github.com/ruanrunxue/Practice-Design-Pattern–Go-
Implement
ation
元闰子
·
2023-04-08 03:00
Go
软件开发
代理模式
golang
设计模式
上一页
119
120
121
122
123
124
125
126
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他