草庐IT

null_unspecified

全部标签

iphone - 获取请求返回一个对象数组 - NSFetchedResultsController 返回 null

req=[[NSFetchRequestalloc]init];//entityent=[NSEntityDescriptionentityForName:@"Medicine"inManagedObjectContext:context];[reqsetEntity:ent];//predicatepred=[NSPredicatepredicateWithFormat:@"date>%@",referenceDate];[reqsetPredicate:pred];//sortdescriptorsorter=[NSSortDescriptorsortDescriptorWithK

java - Spring 安全 5 : There is no PasswordEncoder mapped for the id "null"

我正在从SpringBoot1.4.9迁移到SpringBoot2.0以及SpringSecurity5,我正在尝试通过OAuth2进行身份验证。但是我收到了这个错误:java.lang.IllegalArgumentException:ThereisnoPasswordEncodermappedfortheid"null来自SpringSecurity5的文档,我知道密码的存储格式已更改。在我当前的代码中,我将密码编码器bean创建为:@BeanpublicBCryptPasswordEncoderpasswordEncoder(){returnnewBCryptPasswordEn

java - Spring 安全 5 : There is no PasswordEncoder mapped for the id "null"

我正在从SpringBoot1.4.9迁移到SpringBoot2.0以及SpringSecurity5,我正在尝试通过OAuth2进行身份验证。但是我收到了这个错误:java.lang.IllegalArgumentException:ThereisnoPasswordEncodermappedfortheid"null来自SpringSecurity5的文档,我知道密码的存储格式已更改。在我当前的代码中,我将密码编码器bean创建为:@BeanpublicBCryptPasswordEncoderpasswordEncoder(){returnnewBCryptPasswordEn

ios - 为什么 Uitextfield 返回 null?

我在文本字段中从选择器中选择了日期,然后单击发送按钮进行soap调用。但是文本字段返回null。soap的消息是空null.h@property(nonatomic,retain)IBOutletUITextField*Date1;@property(nonatomic,retain)IBOutletUITextField*Date2;.m@synthesizeDate1,Date2;-(void)viewWillDisappear:(BOOL)animated{[Date1resignFirstResponder];[Date2resignFirstResponder];}-(voi

java - 无法自动配置 session 存储库,请检查您的配置( session 存储类型为 'null' )

这个springboot启动错误是什么意思?2016-07-0421:53:53[restartedMain]ERRORo.s.boot.SpringApplication-Applicationstartupfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithnameorg.springframework.boot.autoconfigure.session.SessionAutoConfiguration$SessionRepositoryValidator':Invo

java - 无法自动配置 session 存储库,请检查您的配置( session 存储类型为 'null' )

这个springboot启动错误是什么意思?2016-07-0421:53:53[restartedMain]ERRORo.s.boot.SpringApplication-Applicationstartupfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithnameorg.springframework.boot.autoconfigure.session.SessionAutoConfiguration$SessionRepositoryValidator':Invo

ios - React Native - 无法构建 DependencyGraph :Cannot read property 'root' of null

我试图让ReactNative第一次运行他们的helloworld应用程序(AwesomeProject),但我在控制台中收到此错误:FailedtobuildDependencyGraph:Cannotreadproperty'root'ofnullTypeError:Cannotreadproperty'root'ofnullatindex.js:16:60attryCallOne(/Users/Eduardo/Documents/Code/Personal/ReactNative/AwesomeProject/node_modules/promise/lib/core.js:37

ios - AVCaptureDevice 在模拟器上始终为 null

我正在trycatch实时麦克风音频数据。我从AVCaptureSession的苹果示例中获取了以下内容。AVCaptureSession*captureSession=[[AVCaptureSessionalloc]init];AVCaptureDevice*audioCaptureDevice=[AVCaptureDevicedefaultDeviceWithMediaType:AVMediaTypeAudio];NSError*error=nil;AVCaptureDeviceInput*audioInput=[AVCaptureDeviceInputdeviceInputWit

iphone - 检查 NSString 变量的 NSDictionary 值 [NSNull null]

我正在用xmlWriter创建一个XML,我在一个NSDictionary中有一些值,它有几个键/值对,但是其中一些值是[NSNullnull],我将每个值传递到它自己的NSString。在我的XMLWriter方法中,我有一个if语句来检查这是否是对数据库的特定方法调用,如果是,那么我只想为不相等的NSString变量创建writeAttributes[NSNullnull]。我不确定如何动态检查每个变量。我想也许我可以做一个if语句,但那是行不通的,因为一旦其中一个变量不等于[NSNullnull],它就会跳转当xml可能需要更多变量时,从XMLWritter的这一部分中退出。这是

ios - 对对象的引用返回 null(iOS 类继承)

我是iOS编程的新手,在类继承方面遇到了一些问题。我有一个带有对象的类(初始化为.h中的属性)@property(nonatomic,weak)NSNumber*count;在特定功能中每按下一个按钮它就会递增。在另一个类中我引用了它:#import"otherClass.h"...otherClass*otherC=[[otherClassalloc]init];NSLog(@"COUNT:%@",otherClass.count);无论我如何尝试,输出仍然为空。我不确定我是否实现错误。请帮忙!**找到解决方案(1)定义一个新类,将其命名为RSModel(2)将@property(n