首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏java干货

    Spring系列四:Bean Scopes作用域

    <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer"> <property name="<em>scopes</em>

    1.1K10发布于 2021-02-19
  • 来自专栏技术专家成长之路

    速查列表:Apache SkyWalking OAL 的 域(Scopes)

    在流模式(Streaming mode)下,SkyWalking 提供了 观测分析语言(Observability Analysis Language,OAL) 来分析流入的数据。

    58120编辑于 2022-04-22
  • 来自专栏小小码农一个。

    Lamda 表达式作用域(Lambda Scopes)

    但是和匿名对象不同的是,这里的变量num可以不用声明为final,该代码同样正确:

    67720发布于 2020-06-08
  • 来自专栏一个会写诗的程序员的博客

    Spring Bean Scopes: Bean 实例生成方式与生命周期

    The life cycle and visibility of Spring Bean. 6 types of scopes singleton prototype request session application websocket The last four scopes mentioned, request, session, application and websocket ListspecList; IQuerySpecification spec =null; ... } 参考资料 https://www.baeldung.com/spring-bean-scopes

    45840发布于 2021-07-20
  • 来自专栏Go工具箱

    学习gorm系列十:使用gorm.Scopes函数复用查询逻辑

    今天要学习的是gorm.Scopes函数的使用。该函数的作用就是复用查询条件。 gorm Scopes是什么 在项目中,你一定会遇到过很多需要复用的查询条件。 那就是使用gorm.Scopes函数。 我们先看一个使用gorm.Scopes函数使用的简单例子,这个例子只是为了说明gorm.Scopes函数的使用。 然后将这样的函数传递给ScopesScopes函数只是简单的将func (db *gorm.DB) *gorm.DB放到Statement.scopes这个切片中。 因为gorm.Scopes函数只接受func(db *gorm.DB) *gorm.DB类型的函数。最后,将Paginate函数传递给Scopes函数即可。 在go-admin中,就使用了gorm.Scopes函数来统一使用权限查询条件。在每个操作中,都通过Scopes函数传入了一个Permission函数。

    1.2K10编辑于 2023-12-21
  • 来自专栏丑胖侠

    Drools规则引擎-如果判断某个对象中的集合是否包含指定的值

    = new HashSet<>(); scopes.add(new Scope("P2P")); scopes.add(new Scope("金融")); scopes.add(new Scope ); kieSession.fireAllRules(); } } 相关实体类: @Data public class Corporation { private Set<Scope> scopes :scopes); $s: Scope(scope == "P2P") from $scopes; then System.out.println("containsVar1行业类型为 :P2P"); end rule "containsVar2" when $c: Corporation($scopes:scopes); exists (Scope(scope 然后,通过from关键字来遍历scopes。然后,通过from关键字来遍历scopes。然后,通过from关键字来遍历scopes中的值,获得符合条件的。

    3.6K40发布于 2019-08-14
  • 来自专栏Czy‘s Blog

    作用域与作用域链

    全局作用域 直接声明在顶层的变量或方法就运行在全局作用域,借用函数的[[Scopes]]属性来查看作用域,[[Scopes]]是保存函数作用域链的对象,是函数的内部属性无法直接访问但是可以打印来查看。 [[Scopes]]: Scopes[1] 0: Global ... */ // 可以看见声明的s函数运行的上下文环境是全局作用域 函数作用域 当声明一个函数后,在函数内部声明的方法或者成员的运行环境就是此函数的函数作用域 [[Scopes]]: Scopes[2] 0: Closure (localContext) {a: 1} 1: Global ... */ // 可以看见声明的s函数运行的上下文环境是函数 [[Scopes]]: Scopes[2] 0: Block {a: 1} 1: Global ... */ } // 可以看见声明的s函数运行的上下文环境是Block [[Scopes]]: Scopes[4] 0: Block (localContext2) {d: 4} 1: Closure (localContext2

    2.6K20发布于 2020-08-27
  • 来自专栏丑胖侠

    Drools规则引擎-判断集合(List)是否包含集合

    两个集合相关代码: public class Company { private List<String> scopes; public List<String> getScopes() { return scopes; } public void setScopes(List<String> scopes) { this.scopes = scopes; } } Company java.util.ArrayList rule "compareListRule" when $blackList: List(); $company: Company($scopList:scopes ,toCompareList(scopes,$blackList)); then System.out.println("黑名单规则触发!")

    1.6K20发布于 2019-08-01
  • 来自专栏homura的博客

    Rc-lang开发周记17 一点AST检查

    Ident): Boolean = { localTable.contains(ident) } } case class ScopeManager() { private var scopes enter(Params(List()), f) } def enter[T](params: Params, f:() => T): T = { val oldScope = scopes scopes ::= Scope(mutable.Set.from(params.params.map(_.name))) val result = f() scopes = oldScope result } def curScope: Scope = scopes.last def add(ident: Ident): Boolean = curScope.add scopes.exists(_.contains(ident)) } def curContains(ident: Ident): Boolean = curScope.contains(ident

    39740编辑于 2023-04-07
  • 来自专栏路过君BLOG from CSDN

    spring security oauth2 默认User Approval页面,定制方法

    ") || request.getAttribute("scopes") ! = (Map<String, String>) (model.containsKey("scopes") ? model.get("scopes") : request.getAttribute("scopes")); for (String scope : scopes.keySet()) { String approved = "true".equals(scopes.get(scope)) ? true".equals(scopes.get(scope)) ?

    83010编辑于 2021-12-07
  • 来自专栏Spring相关

    oauth2.0实现sso单点登录的方式和相关代码

    ") || request.getAttribute("scopes") ! model.get("scopes") : request .getAttribute("scopes")); for (String scope : scopes.keySet true".equals(scopes.get(scope)) ? model.get("scopes") : request.getAttribute("scopes"))); Iterator var5 = scopes.keySet().iterator true".equals(scopes.get(scope)) ?

    2.5K20发布于 2018-09-10
  • 来自专栏木二天空

    048.集群管理-资源限制实践

    : quota-scopes Scopes: BestEffort * Matches all pods that do not have resource requirements set Scopes: NotBestEffort * Matches all pods that have at least one resource requirement set. [root@k8smaster01 study]# kubectl get pods --namespace=quota-scopes ? Namespace: quota-scopes Scopes: BestEffort * Matches all pods that do not have resource requirements 结论:资源配额的作用域(Scopes)提供了一种将资源集合分割的机制,可以使集群管理员更加方便地监控和限制不同类型的对象对各类资源的使用情况,同时为资源分配和限制提供更大的灵活度和便利性。

    54210发布于 2020-04-10
  • 来自专栏程序员与猫

    结合ABP源码实现邮件发送功能

    new SettingDefinition(AppSettings.Smtp.Host, "smtp.gmail.com", L("SmtpHost"), scopes new SettingDefinition(AppSettings.Smtp.UserName, "myemail@gmail.com", L("Username"), scopes new SettingDefinition(AppSettings.Smtp.Password, "mypassword", L("Password"), scopes new SettingDefinition(AppSettings.Smtp.EnableSsl, "true", L("UseSSL"), scopes SettingDefinition(AppSettings.Smtp.UseDefaultCredentials, "false", L("UseDefaultCredentials"), scopes

    1.4K90发布于 2018-01-18
  • 来自专栏华仔的技术笔记

    BlockStack身份授权流程

    : string, scopes? : string, scopes? = scopes || appConfig.scopes return authMessages.makeAuthRequest( transitKey, redirectURI : { ...this.state.scopes, email: scopes.includes('email'), publishData: scopes.includes = this.state.decodedToken.payload.scopes const needsCoreStorage = !

    1.2K30发布于 2020-04-01
  • 来自专栏Tensorbytes

    关于kubevela和oam

    : string } 最后是 scopesscopes 表示作用域,主要用于分组和管理,比如可以将一个 component 划归到多个 scopes,一个scopes 也可以包含多个 component first-vela-app uid: a603e28a-b52a-4b5f-ae6c-be57de887c51 spec: components: - name: testsvc scopes observedGeneration: 1 workloads: - componentName: testsvc componentRevisionName: testsvc-v3 scopes 小结 OAM 提供了三种核心的模板来创建一个应用, components,traits 和 scopes,components 一般定义一些和基础设施相关模板,由平台团队提供,traits 定义和基础运维相关模板 ,由运维人员定义,scopes 偏向于两者都关心的部分。

    1.9K30发布于 2021-02-26
  • 来自专栏Czy‘s Blog

    let与const

    [[Scopes]]: Scopes[2] 0: Block {a: 1} 1: Global ... */ } // 此处不能使用 a ,a 是块级作用域 // 此处可以使用 b , b 在此处是全局作用域 [[Scopes]]是保存函数作用域链的对象,是函数的内部属性无法直接访问,[[Scopes]]中可以看到出现了一个Block块级作用域,这使得let特别适合在 [[Scopes]]: Scopes[3] 0: Block {b: 2} 1: Script {a: 1} 2: Global ... */ }

    78710发布于 2020-08-27
  • 来自专栏漫画前端

    你是否听说过JavaScript的环境模型?

    ▼[[Scopes]]: Scopes[2] ▼0: Closure (f1) s1: 0 ▶1: Global {postMessage: ƒ, ▼[[Scopes]]: Scopes[2] ▼0: Closure (f1) f2: ƒ () ▶1: Global {postMessage: ▼[[Scopes]]: Scopes[1] ▶0: Global {postMessage: ƒ, blur: ƒ, focus: ƒ, close: ƒ, parent: Window, … ▼[[Scopes]]: Scopes[2] ▼0: Closure (f1) f2: ƒ () ▶1: Global {postMessage: ▼[[Scopes]]: Scopes[4] ▶0: Closure (f3) {f4: ƒ, arguments: Arguments(0)} ▶1: Closure

    1.5K30发布于 2020-12-16
  • 来自专栏王磊的博客

    1.作用域

    2.1 singleton 官方说明:(Default) Scopes a single bean definition to a single object instance for each Spring 2.2 prototype 官方说明:Scopes a single bean definition to any number of object instances. 2.3 request 官方说明:Scopes a single bean definition to the lifecycle of a single HTTP request. 2.4 session 官方说明:Scopes a single bean definition to the lifecycle of an HTTP Session. 2.5 application 官方说明:Scopes a single bean definition to the lifecycle of a ServletContext.

    46610编辑于 2022-09-27
  • 来自专栏软件开发-青出于蓝

    Springsecurity-oauth2之ClientDetailsService

    logger.warn("Could not decode JSON for additional information: " + details, e); } } String scopes = rs.getString(11); if (scopes ! = null) { details.setAutoApproveScopes(StringUtils.commaDelimitedListToSet(scopes)); }

    5.6K41发布于 2019-04-15
  • 来自专栏jeremy的技术点滴

    使用dex搭建一个身份认证系统

    ="text" name="cross_client" placeholder="list of client-ids">

    Extra scopes :<input type="text" name="extra_<em>scopes</em>" placeholder="list of <em>scopes</em>">

    = "yes" { authCodeURL = a.oauth2Config(scopes).AuthCodeURL(exampleAppState) } else if a.offlineAsScope { scopes = append(scopes, "offline_access") authCodeURL = a.oauth2Config(scopes).AuthCodeURL(exampleAppState ) } else { authCodeURL = a.oauth2Config(scopes).AuthCodeURL(exampleAppState, oauth2.AccessTypeOffline

    3.2K12发布于 2019-08-07
领券