jjzjj

discouraged

全部标签

Relying upon circular references is discouraged and they are prohibited by default.循环依赖bug解决

Relyinguponcircularreferencesisdiscouragedandtheyareprohibitedbydefault.循环依赖bug解决出现的bug大概意思是:不鼓励依赖循环引用,默认情况下是禁止的。更新您的应用程序以删除bean之间的依赖循环。作为最后的手段,可以通过将spring.main.allow-circular-references设置为true来自动中断循环。bug解决SpringBoot2.6正式发布:循环依赖默认禁止。如上提供解决方案为将spring.main.allow-circular-references设置为true,来自动中断循环。如果是.

ios - 警告 : Presenting view controllers on detached view controllers is discouraged

我的情况与我在这里找到的所有其他示例都不一样。我有一个基于选项卡的应用程序。在其中一个选项卡上,用户可以按下按钮,一次性从网络服务器下载多个文件。我使用NSOperation来执行这些下载中的每一个,这样我就可以利用内置的依赖项。下载全部发生在后台线程上,因此应用程序保持响应。最终下载完成后,我在屏幕上放置了一个alertController,让用户知道下载已完成。如果用户在显示警报Controller时选择了不同的选项卡,我会收到警告:“不鼓励在分离的ViewController上显示ViewController”如果它们仍在开始下载的同一个选项卡上,那么我就不会收到警告。我尝试更换

ios - GCD dispatch_io API 用于 iOS 上的网络 : discouraged?

Apple的documentation说:IniOS,POSIXnetworkingisdiscouragedbecauseitdoesnotactivatethecellularradiooron-demandVPN.Thus,asageneralrule,youshouldseparatethenetworkingcodefromanycommondataprocessingfunctionalityandrewritethenetworkingcodeusinghigher-levelAPIs.该文档没有提到来自GCD的dispatch_ioAPI,因此不清楚它们是否在iOS上激

iOS - 刷新控制 - "Attempting to change the refresh control while it is not idle is strongly discouraged and probably won' 无法正常工作。”

我在任何地方都找不到很多关于此警告的引用资料。我有两个提供下拉刷新控制的ViewController。一个还好。另一个产生上面的警告。我将代码从一个复制到另一个。代码如下(PFUser指Parse.com):[superviewDidAppear:animated];if([PFUsercurrentUser]){NSLog(@"who'stheuser:%@",[PFUsercurrentUser]);UIRefreshControl*refreshTable=[[UIRefreshControlalloc]init];refreshTable.attributedTitle=[[N

ios - 警告 :-Presenting view controllers on detached view controllers is discouraged

在我的应用中,我使用了导航Controller。稍后在某些View中,我使用presentViewController来显示缩放图像。我也没有使用Storyboard或Nib。我仅在iOS7中遇到此错误。它在iOS6及更早版本中运行良好:Presentingviewcontrollersondetachedviewcontrollersisdiscouraged 最佳答案 为避免在推送导航中收到警告,您可以直接使用:[self.view.window.rootViewControllerpresentViewController:v

c++ - 有效 C++ : discouraging protected inheritance?

我正在阅读ScottMeyers的EffectiveC++(第三版),并在第32项:确保公共(public)继承是页面上的“is-a”中的一段中151他发表评论(我用粗体表示):Thisistrueonlyforpublicinheritance.C++willbehaveasI'vedescribedonlyifStudentispubliclyderivedfromPerson.Privateinheritancemeanssomethingentirelydifferent(seeItem39),andprotectedinheritanceissomethingwhosemea