[Bug] Spring相关bug收集

详解最新链路追踪skywalking框架介绍、架构、环境本地部署&配置、整合微服务springcloudalibaba 、日志收集、自定义链路追踪、告警等 详解最新springcloudalibaba链路追踪skywalking框架使用(skywalking介绍、架构、环境本地部署&配置、日志收集、自定义链路追踪、告警) 阅读详情

目录

1. RequiredArgsConstructor空指针错误

2.TestRestTemplate注入时异常NoSuchBeanDefinitionException

3. 错误信息:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

4.factory-bean reference points back to the same bean definition


1. RequiredArgsConstructor空指针错误

定义了一个类,用以下注解修饰

@Service("ABC")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))

拿掉@RequiredArgsConstructor(onConstructor = @__(@Autowired))这个注解之后报空指针错

ABC这个bean没有注入进去

@NoArgsConstructor, @RequiredArgsConstructor, @AllArgsContructor。是Lombok插件三种生成不同构造方法的注解,来完成项目中不同构造方法的需求。

@RequiredArgsConstructor的作用是: 会生成一个包含常量,和标识了NotNull的变量的构造方法。生成的构造方法是私有的private

2.TestRestTemplate注入时异常NoSuchBeanDefinitionException

错误信息如下:

Unsatisfied dependency expressed through field 'testRestTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.test.web.client.TestRestTemplate' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

解决方式:在spring test的启动类里面将启动类的注解的SpringBootTest注解改为如下即可:
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) 

3. 错误信息:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

在自己新建一个maven项目之后,引入了spring的相关依赖,随即在java包当中写了一个spring boot的启动类,但是在启动时报了如下错误:

** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.


2019-03-13 22:23:48.872  WARN 7753 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [Application]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurer.class] cannot be opened because it does not exist
2019-03-13 22:23:48.885  INFO 7753 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-03-13 22:23:48.895 ERROR 7753 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [Application]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurer.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at Application.main(Application.java:7) [classes/:na]
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurer.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:51) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:88) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:75) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:734) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getInterfaces(ConfigurationClassParser.java:963) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processInterfaces(ConfigurationClassParser.java:376) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:324) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:194) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:296) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
	... 13 common frames omitted

这个错误提示的是WebSocketMessageBrokerConfigurer相关的错误,我非常纳闷,我什么逻辑都没写怎么会报这个错了,又注意到了一条警告信息:ApplicationConetext没有启动。猜测应该是springboot自动配置相关。于是上google上一搜,发现了原因是因为spring boot的启动类必须放在某一个具体的包下面。

这是错误的方式:

这才是正确的方式:

 

进一步分析原因,熟悉spring boot自动装配原理的朋友应该知道spring boot的自动配置是基于注解@SpringbootApplication的,而这个注解是以它所修饰的类也就是这里的Application类,所在的包的位置去决定scan扫描哪些包的。因此当Application不在一个包下面时,我们的component scan就没有生效而我们自己定义的配置也就不会生效。

更多的信息可以参考stackover flow上的这个问题:链接。

4.factory-bean reference points back to the same bean definition

源代码定义如下 :

@Configuration
public class TargetDataSource {

    @Bean("targetDataSource")
    @ConfigurationProperties(prefix="spring.datasource.target")
    public DataSource dataSource() {
        return DataSourceBuilder.create().build();
    }

}

在运行的时候报错:

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'targetDataSource' defined in class path resource [com/sap/ngom/datamigration/configuration/TargetDataSource.class]: factory-bean reference points back to the same bean definition
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:705)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:669)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:637)
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1489)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:420)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:390)
	at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:222)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1101)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1065)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:815)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:721)

原因在于这里的Class也是一个bean,datasource也是一个bean,而且他们的名字一样,在修改名字不一样之后,错误消失。

5.Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

启动spring boot应用程序时报错如下

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

    Property: driverclassname
    Value: org.h2.Driver
    Origin: "driverClassName" from property source "source"
    Reason: Unable to set value for property driver-class-name

Action:

原因在于代码中定义了h2数据库的bean,但是却缺少相关的maven依赖。去掉之后错误消失。

 

 

 

SpringMVC数据校验Bug-@Valid不起效BindingResult读取不到Error信息 由于篇幅有限,这里就不一一罗列了,20道常见面试题(含答案)+21条MySQL性能调优经验小编已整理成Word文档或PDF文档还有更多面试复习笔记分享如下《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!片转存中…(img-rBnuMPSg-1713332135983)]《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取! 阅读详情

相关推荐

【异常】@RequiredArgsConstructor(onConstructor = @__(@Autowired))提示无法解析符号 ‘__‘

如果你是idea,那就不需要下载lombok,只需要在依赖中添加lombok依赖就好,idea自动装了lombok。这个是我自己遇到的问题,我两个下划线一直报错,是因为我下载了idea汉化插件,引起的版本冲突,卸载了就解决了。有的版本是_一个下划线,有的是两个下划线__, 所以还是注意看一下。

奶爸的编程之路,也就一周冷个三天 2633

小白踩坑记:spring初始化时出现:factory-bean reference points back to the same bean definition

意思说的是你的factory-bean指向同一个bean定义,经过查看发现,我的类名和方法名一样(忽略大小写,因为当不指定名字时,默认是首字母小写作为bean的名字) // @Service public class JedisPool { @Autowired RedisConfig redisConfig; @Bean public redis.clients.jedis.JedisPool jedisPool(){ JedisPoolConfig jed

m0_46669243的博客 5643

Spring高频面试基础问题与知识点整理:35道高频题的答案、原理、Spring 7实测与版本差异解析整理(大厂实战记录高频汇总)

本文围绕Spring面试中最常见的23道题和12道补充题,逐题给出直接作答的结论、原理与版本边界。实测基于Spring Boot 4.2.0与Spring 7.1.0,并在5.3、6.1、6.2、7.0上对照:三级缓存只解开单例的字段与setter循环,6.2起@Async成环会换序重试却不可依赖;JDK代理与CGLIB调用开销差约一成;16个事务失效现场中仅protected与包级方法随6.0改变。另含自动配置候选数、Bean生命周期与Spring Cloud组件更替,适合面试与升级排查。

曾经“等你生日那天”都遥远得像未来,如今却可欢愉的挥手说“下个十年见” 174万+

@RequiredArgsConstructor(onConstructor=@_(@Autowired))

@RequiredArgsConstructor(onConstructor=@_(@Autowired))是lombok的注解,为private final定义的变量进行自动注入,可省略写大量@Autowired

大白的博客 8661

C++笔试题整理

目录 1. 笔试题1 1.1 链表反转 1.2 String 2. 笔试题2 2.1 求下面函数的返回值(微软) 2.2 什么是“引用”?申明和使用“引用”要注意哪些问题? 2.3 将“引用”作为函数参数有哪些特点? 2.4 在什么时候需要使用“常引用”?  2.5 将“引用”作为函数返回值类型的格式、好处和需要遵守的规则? 2.6 “引用”与多态的关系? 2.7 “引用”与指针的区别是什么? 2.8 什么时候需要“引用”? 2.9 结构与联合有和区别? 2.10 下面关于.

星月相随的专栏 2490

STM32F103到F407移植OLED,为啥F4屏幕不亮?一个延时函数搞定时序问题

本文详细分析了STM32F103到F407移植OLED时屏幕不亮的问题,指出时钟频率差异导致的时序问题是关键原因。通过对比F103和F407的时钟架构差异,提供了精确延时函数的实现方法,并指导在I2C通信关键点插入适当延时,确保OLED正常显示。文章还涵盖了完整的测试方案和高级优化技巧,帮助开发者彻底解决移植中的时序问题。

weixin_30642561的博客 562

@RequiredArgsConstructor(onConstructor =@_(@Autowired))

首先次注解需要安装lombok插件,及引入相关pom文件: 1. 含义 @NoArgsConstructor后会 生成无参的构造方法, @RequiredArgsConstructor会将类的每一个final字段或者non-null字段生成一个构造方法, @AllArgsConstructor 生成一个包含过所有字段的构造方法。 2. 用法 @RequiredArgsConstructor(onConstructor =@_(@Autowired)) 写在类上可以代替@AutoWired注解, .

waitu88的博客 1万+

【推荐100个unity插件】动画重定向,快速在不同角色间共享动画,共用非人形Humanoid(泛型generic)动画——Retarget Pro

Retarget Pro是一款高效的Unity动画重定向工具,可快速在不同角色间共享动画。主要特点包括:1分钟快速设置,支持编辑器和运行时重定向;适用于人形、动物、武器等各类角色;提供基础重定向、IK重定向和FPS专用重定向三种功能模块;通过Rig组件和骨架资产实现骨骼链匹配,支持批量处理。插件包含示例项目和预设资源,操作简便且效果优于Unity原生Humanoid系统,特别适合处理手指等精细动画。

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 566

@RequiredArgsConstructor(onConstructor =@__(@Autowired))

【代码】@RequiredArgsConstructor(onConstructor =@__(@Autowired))

m0_50836836的博客 975

052、联发科Imagiq HyperEngine架构适配:天玑9000/9200的ISP多核并行调度与Tuning Toolkit调优案例

摘要: 项目组在适配联发科天玑9200的Imagiq 890 ISP架构时,遇到多摄预览功耗过高、帧率不稳等问题。通过分析多核调度机制,调整辅核QoS通道、优化AI-ISP协同模式(采用FREERUN+运动补偿),并利用Tuning Toolkit的Pipeline Viewer动态分配负载,最终降低功耗30mA、提升画质。关键经验包括:避免多核带宽冲突、合理配置动态时钟策略,以及统一校准参数版本管理。天玑9000/9200的HyperEngine架构需优先理解多核协同逻辑,再针对性调优,否则易引发场景兼容

zzfmlxs的博客 40

MATLAB库函数unwrap(相位解卷绕)的C语言实现

什么是相位解卷绕 Q = unwrap(P) Q = unwrap(P) corrects the radian phase angles in a vector P by adding multiples of ±2π when absolute jumps between consecutive elements of P are greater than or equal to the default jump tolerance of π radians. If P is a matrix, unw

业精于勤,荒于嬉 4257

GitHub 热点速览 Vol.16:化身蒙娜丽莎和乔布斯对话

作者:HelloGitHub-小鱼干摘要:妙趣横生,上周的 GitHub 热点的关键词。无论是让你化身为爱因斯坦开启会议脑暴模式 avatarify,还是和上周人人都是抠图师项目的同门项...

HelloGitHub 的博客 1305

VLA数据采集以及训练

直到15s计时结束,弹出下面的内容,这个时候不会录制视频了,这里就是需要复位物体到初始位置,尽量保证物体的初始位置放在一样的位置,计时3s,同样根据自己的复位时间来修改(--dataset.reset_time_s=3),这里和前面录制数据的区别就是fps后面多了一个nment,可以作为一个标记,知道什么时候开始去复位而不会拍到自己的手臂。复制网址,在浏览器打开,会出现下面的窗口,依次检查每一轮是否存在问题,例如是否出现录制不完整,是否存在除了机械臂以外的其他移动物体,这些都可能会影响最终训练的效果。

weixin_45303602的博客 502

【Bug 全解决】 Java、Spring boot 后端项目 Bug 总结

本文记录的是 SpringBoot 后端项目使用和运行代码时所遇到的各种问题,全部都已解决,欢迎在评论区补充你遇到的 Bug 哦!仅以本文记录学习社区项目时,所遇到的奇奇怪怪的 bug,以及一些很愚蠢的错误,以警醒自己不再犯同样的错误,共勉!一起进步!

yumuing‘s blog 1万+

matlab 计算InSAR干涉相位图的残差点

在理想的情况下,相位场是连续的,图像内沿着任何一条封闭曲线的积分应该为零。这样的连续场称为无旋场,反之为有旋场。但在实际测量过程中,由于噪声、欠采样和系统误差等因素的影响,得到的 InSAR 干涉相位条纹图中往往会出现不连续的相位点,即残差点

点云侠的博客 272

如何计算 R 中的基尼系数(附示例)

以意大利统计学家Corrado Gini命名,基尼系数是衡量人口收入分配的一种方法。基尼系数的值在 0 到 1 之间,值越高代表收入不平等越大,其中:0代表完全的收入平等(每个人的收入都一样) 1代表完全的收入不平等(一个人拥有所有收入) 您可以在此处找到按国家/地区列出的基尼系数列表。以下示例显示了使用DescTools包中的Gini()函数计算 R 中的基尼系数的两种方法。示例 1:使用个人收入计算基尼系数假设我们有以下 10 个人的年收入列表:收入:5 万美元、5 万美元、7 万美元、7 万美元、7

Mrrunsen的博客 2996

自用bug收集

#1、getReader() has already been called for this request 需求:通过过滤器实现对HttpServletRequest请求体的数据做一些逻辑判断、通过获取request.getReader() 流读取body的详细内容,但是request.getReader() 和 request.getInputStream() 都是只能调用一次,所以抛出上述异常信息(个人猜想:导致在controller层无法取到body数据)。 解决:通过继承HttpServletR

qq_41980255的博客 466

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

常见开发相关问题收集

Table of Contents 使用windows cmd 工具根据端口号关闭指定的运行中的项目? intellij idea 如何将一个普通项目转换为maven项目 Chrome浏览器console不现实error log Could not read from remote repository git本地代码和github上的format不一样 使用Intelij报错:Err...

topdeveloperr的博客 1643

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

Spring Boot 服务监控机制是什么?线程、JVM堆信息怎么收集?

通过上面的介绍,可以看到 SpringBoot 提供的监控非常强大,但是就算再全面的监控也不可能满足所有人的需求,所以 SpringBoot 也支持自定义监控端点。@Endpoint:定义一个监控端点,同时支持 HTTP 和 JMX 两种方式。:定义一个监控端点,只支持 HTTP 方式。:定义一个监控端点,只支持 JMX 方式。以上三个注解作用在类上,表示当前类是一个监控端点,另外还有一些注解会用在方法和参数上::作用在方法上,可用来返回端点展示的信息(通过 Get 方法请求)。

weixin_44066506的博客 847

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

基于Spring Boot的游戏成长系统后端设计:从生产收集到市场交易

在游戏开发与模拟经营类项目中,数值成长系统是连接用户行为与长期目标的核心框架,其本质是一套管理状态迁移与资源流转的业务逻辑。从技术原理上看,这类系统通常围绕核心实体(如用户、设施、资源)构建数据模型,并通过事件驱动与定时任务等机制实现状态的实时同步与异步计算。其技术价值在于能够将复杂的业务循环(生产、收集、交易、再投资)转化为高并发、高一致性的服务端代码,确保资产安全与体验流畅。在应用场景上,此类设计广泛适用于需要渐进式反馈的Web应用、模拟经营游戏及带有经济系统的社交产品。本文以“捡鸡蛋致富”这一经典模型

weixin_34347651的博客 477
上一篇: [编程与其他] 一
下一篇: [编程与其他] 二
topEngineerr
博客等级 码龄11年 627粉丝 157原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址