草庐IT

Required

全部标签

php - required_without 不使用多个字段

Laravelrequired_without当我传递多个字段时不起作用。这是我的规则:$rules=['startDate'=>'date|date_format:m/d/Y|required_without:customerId,purchaseId,orderId','endDate'=>'date|date_format:m/d/Y|required_without:customerId,purchaseId,orderId',];我想要什么,当我传递customerId或purchaseId或orderId时(但不是所有)那么我不应该得到任何错误。但它给了我任何需要start

flink-sql入es报错:Missing required options are document-type

文章目录完整的报错如下图所示提取有用的信息分析错误原因完整的报错Exceptioninthread“main”org.apache.flink.table.api.ValidationException:Unabletocreateasinkforwritingtable‘default_catalog.default_database.sink_ella_operation_log’.Tableoptionsare:‘connector’=‘elasticsearch-6’‘hosts’=‘http://bigdatanode01:9200;http://bigdatanode02:9200

php - 德鲁巴 : File upload required?

出于某种原因,当我尝试使文件上传成为必需时,我的表单中断了。这是它的代码:$form_id="upload_form";$form[$form_id]=array('#type'=>'fieldset','#description'=>t('ThisisautilitytoimportnodesfromaCommaSeparatedValuefile.Tobegin,pickanodetype,anduploadaCSV.'),);$form[$form_id]['type']=array('#title'=>t('Enternodetype'),'#type'=>'textfield

php - Laravel 5 Form Requests - 验证相关数据

Laravel5中的FormRequests是验证和授权的好方法。但是,如果我必须验证包含一对多关系数据的请求,该如何处理。例如,如果我有简单的发票应用程序。一张发票有很多服务。我的表单发布请求包含以下数据:array(size=5)'date'=>string'2014-11-14'(length=10)'num'=>string'175'(length=3)'client_id'=>string'5'(length=1)'vat'=>string'1'(length=1)'services'=>array(size=2)0=>array(size=3)'description'=>

php - Laravel 5.2 验证 : date_format:Y. m.d 不工作

我尝试验证POST请求。格式为:d.m.Y(12.1.2017)对于此字段,我的规则是required|date_format:d.m.Y。我收到此错误消息:InvalidArgumentExceptioninCarbon.phpline425:Unexpecteddatafound.Unexpecteddatafound.Datamissing如果我将.更改为-或什至/它正在工作->之前更改的POST数据以匹配规则。我需要德语格式。编辑:我的验证规则:publicfunctionrules(){return['title'=>'required|max:255','expiratio

Java 错误 : constant string expression required

这个问题在这里已经有了答案:Javaswitchstatement:Constantexpressionrequired,butitISconstant(14个答案)关闭9年前。我有2个Java类:publicabstractclassIconNames{/****/publicstaticfinalStringButtonFett=java.util.ResourceBundle.getBundle("recources/buttonproperties").getString("fett");}和publicclassEditorPanelActionListenerimpleme

java - com.sun.mail.smtp.SMTPAddressFailedException : Recipient address rejected: Authentication Required

我正在使用以下代码但收到错误消息-运行:javax.mail.SendFailedException:InvalidAddresses;nestedexceptionis:com.sun.mail.smtp.SMTPAddressFailedException:5305.7.0:Recipientaddressrejected:AuthenticationRequiredatcom.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1607)atcom.sun.mail.smtp.SMTPTransport.sendMessag

java - Spring OAuth2 "Full authentication is required to access this resource"

我正在尝试将SpringOAuth2用于我的其余应用程序。但看起来我犯了一个错误,我可以找到我在哪里做的。流程应该是:1.使用用户名和密码从/oauth/token获取token2.使用提供的token向/security发出请求方法安全配置:@Configuration@EnableGlobalMethodSecurity(prePostEnabled=true,proxyTargetClass=true)publicclassMethodSecurityConfigextendsGlobalMethodSecurityConfiguration{@AutowiredprivateS

java - XPTY0004 : Required item type of first operand of '>' is numeric; supplied value has item type xs:string

toComplie字符串包含函数的所有定义,如求和、乘法等。附加if($a>0)then(iaf:numeric-equal(iaf:numeric-multiply($b,$c),$d))否则(true())执行这个的片段是:XQueryExecutablequeryExecutable=xqueryCompiler.compile(toCompile.toString());XQueryEvaluatorxqueryEvaluator=queryExecutable.load();//setExternalVariables():functionusedtosetthevariab

java - 获取以下构建错误 : "the type {---} cannot be resolved. it is indirectly referenced from required .class files"

因此,我在Eclipse(Java)中进行了以下设置:我有一个项目(我们称之为“项目1”),它提供了一个接口(interface)(包私有(private))我有另一个项目(“项目2”),其中包含项目1的包...此包中的类扩展了“项目1”中的包私有(private)接口(interface),并提供了一个很好的公共(public)接口(interface)。现在,我有引用“项目2”的“项目3”。项目3然后使用项目2中提供的公共(public)对象。在项目3中调用项目2的构造函数后,我得到以下信息:“无法解析类型{---}。它是从所需的.class文件中间接引用的”如果我从项目3添加对项