腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(412)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
ConfigurationProperty
的规范示例
[
ConfigurationProperty
("remoteOnly", DefaultValue = "false", IsRequired = false)] } { }包含以下内容 [
ConfigurationProperty
浏览 0
提问于2012-05-09
得票数 4
回答已采纳
2
回答
[
ConfigurationProperty
("providers")]做什么?
请告诉我这句话是怎么做的:其实我想知道什么是[]?我在web方法上也看到了这样一行[]。[]是什么?有什么用呢?
浏览 2
提问于2011-05-04
得票数 5
回答已采纳
2
回答
检查是否未设置
ConfigurationProperty
值
假设我有一个
ConfigurationProperty
是这样定义的:public double TheProp get{//some code}} 如何检查这个
ConfigurationProperty
是否有一个值?
浏览 1
修改于2014-09-01
得票数 0
回答已采纳
2
回答
是否为
ConfigurationProperty
密钥生成ID?
ConfigElement parent) { } { } [
ConfigurationProperty
浏览 0
提问于2012-08-09
得票数 0
回答已采纳
1
回答
无法将
ConfigurationProperty
转换为整数
我想我漏掉了一些明显的东西......{ } } }} public class
浏览 1
修改于2017-05-23
得票数 0
回答已采纳
1
回答
如何在Spring中获取
ConfigurationProperty
实例?
我正在试验Spring的重载执行器,它的想法是能够对application.yaml文件的变化做出反应并进行调整。这就是为什么我认为我可以点击一个ApplicationListener<EnvironmentChangeEvent>事件,它是在重新加载事件之后触发的。不幸的是,这个事件对我来说是无用的,因为我似乎不知道如何将新来的PropertySources映射到我的AppConfigurationProperty类。
浏览 8
提问于2022-11-26
得票数 1
1
回答
如果不存在,
ConfigurationProperty
不返回DefaultValue
[
ConfigurationProperty
("spatialSRID", DefaultValue = 4326)]{ get { return
浏览 4
修改于2014-12-01
得票数 1
回答已采纳
3
回答
由于
ConfigurationProperty
的保护级别,它无法访问。
section["LogPath"]);由于'System.Configuration.ConfigurationElement.thisSystem.Configuration.
ConfigurationProperty
有人能解释为什么出现"
ConfigurationProperty
是不可访问的“错误吗?谢谢我已将复制系统的本地和System.Configuration设置为true
浏览 8
提问于2011-12-21
得票数 14
回答已采纳
1
回答
无法为自定义ConfigurationElement类型的
ConfigurationProperty
设置DefaultValue
我对用于
ConfigurationProperty
的DefaultValue有一个小问题。TypePropertyName = "Type"; { new
ConfigurationProperty
ConfigurationPropertyOptions.IsKey
浏览 0
提问于2011-06-24
得票数 1
回答已采纳
1
回答
如何访问属性为ConfigurationPropertyAttribute的类生成的
ConfigurationProperty
每个参数的所有配置节都使用.Net
ConfigurationProperty
属性定义,这些属性都具有DefaultValue属性。class MyCollection : ConfigurationElementCollection public MyCollection () } [
ConfigurationProperty
浏览 2
修改于2013-05-04
得票数 1
回答已采纳
1
回答
String-自定义ConfigurationSection中的
ConfigurationProperty
ConfigurationSection (比方说LibA.dll):{ [
ConfigurationProperty
浏览 2
提问于2017-01-16
得票数 0
回答已采纳
2
回答
自定义RegexStringValidator中
ConfigurationProperty
中的意外ConfigurationElement失败
我正在编写自己的自定义配置部分,并在一个
ConfigurationProperty
中定义了一个ConfigurationElement,如下所示: [
ConfigurationProperty
("startTime
浏览 2
提问于2010-11-10
得票数 7
回答已采纳
3
回答
.net自定义配置如何不区分大小写解析枚举
ConfigurationProperty
我的ConfigurationSection中有一个
ConfigurationProperty
就是ENUM。当.net解析配置文件中的枚举字符串值时,如果大小写不完全匹配,将抛出异常。
浏览 3
修改于2013-07-24
得票数 77
回答已采纳
4
回答
为什么ConfigurationValidator要验证
ConfigurationProperty
的默认值,即使IsRequired是真的?
[
ConfigurationProperty
("x", IsRequired = true)]public string X[
ConfigurationProperty
("x", DefaultValue="abc", IsRequired =
浏览 4
提问于2010-09-19
得票数 13
回答已采纳
2
回答
如果在@
ConfigurationProperty
中声明,则无法检查缺少的属性
我们已经构建了一个Spring,它在一个带有@ConfigurationProperties注释的类中描述了它的配置:public class FooConfiguration {}@Bean @ConditionalOnProperty(name = "foo.bar.baz", matchIfMissing=tr
浏览 2
修改于2016-12-09
得票数 4
回答已采纳
1
回答
当与
ConfigurationProperty
属性一起使用时,属性类型的隐式契约是什么?
我试图通过以下的财产声明来做到这一点:{ [
ConfigurationProperty
("ver
浏览 0
修改于2012-08-16
得票数 4
回答已采纳
1
回答
如何使字符串类型的
ConfigurationProperty
在配置文件中不存在时返回null
我有一个我构建的自定义配置,其中一个属性(实际上是其中的一些)是字符串。如果用户没有在app.config中设置它们,我需要它们为空,但在这种情况下,.NET的配置系统似乎坚持返回string.Empty。
浏览 3
提问于2013-12-20
得票数 0
1
回答
多行代码的Javadoc格式问题
我有下面的Javadoc,它有多行代码: * <code> * throws an {@link IllegalArgumentException} if the provided type is not supported in * {@link
ConfigurationProperty
下面是我在生成的Javad
浏览 0
修改于2015-06-21
得票数 0
2
回答
如何在Rails中将散列数组转换为XML?
</comment> </map> <string</comment> </map>我想要的: &l
浏览 3
提问于2016-11-30
得票数 1
回答已采纳
1
回答
配置部分未加载
("server")] publicFromElement From { get; set; }{ [
ConfigurationProperty
("port", DefaultValue = 587, IsRe
浏览 4
提问于2015-11-04
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券