小编Pus*_*kar的帖子

如何在dynaTree jQuery插件中点击超链接?

我目前正在使用dynaTree jQuery插件来渲染树.

<div id="tree" style="height:100px;">

<ul class="expanded">

    <li class="expanded" id="shtml_1" >
        <a class="ajaxify" href="jsTree.html" >Root node 1</a>
        <ul>
            <li id="shtml_2">
                <a href="#">Child node 1</a>
                <ul>
                <li id="a"><a href="#">Child node 1-1</a></li>
                <li id="x"><a href="b">Child node 1-2</a></li>
                </ul>
            </li>               
            <li id="c"><a href="#">Child node 2</a></li>
        </ul>
    </li>
    <li id="shtml_4">
        <a href="#">Root node 2</a>
    </li>
</ul>
Run Code Online (Sandbox Code Playgroud)

Javascript -

  $('.ajaxify').ajaxify({
  target: '#container'
  });

    $(function(){
    $("#tree").dynatree({
      title: "Sample Theming",
      // Image folder used for data.icon attribute.
      imagePath: "skin-custom/",
      onSelect: function(node) {
        alert ("You selected " + …
Run Code Online (Sandbox Code Playgroud)

javascript jquery

5
推荐指数
1
解决办法
4148
查看次数

Eclipse PDE中的日志记录策略

我正在编写Eclipse 3.7插件.我是Eclipse PDE的新手,但不是JAVA的新手.我试图了解应该使用的日志记录策略.我的问题是 -

  1. 我应该如何从我的插件中记录?我发现了一些资源(Eclipse PDE Logging),但我仍然不清楚我应该怎么做.代码片段会很有帮助.

  2. 这些文件放在哪里?

更新:我做了一些研究,找到了状态管理器.但仍不清楚它应该如何使用.

java logging eclipse-pde eclipse-plugin eclipse-rcp

4
推荐指数
1
解决办法
537
查看次数

配置 Spring Security 5 Oauth 2 以使用 access_token uri 参数

我正在基于此示例创建一个应用程序 -

背景 -

https://github.com/spring-projects/spring-security/tree/master/samples/boot/oauth2resourceserver-webflux

OAuth2 令牌位于标头中,它工作得很好。

问题 -

但是我想将其更改为在 url 中使用 OAuth 2 令牌。我正在尝试创建 OAuth2 资源服务器。

分析-

Spring Security 似乎支持从 access_token 参数获取令牌 -

https://github.com/spring-projects/spring-security/blob/e3eaa99ad06769cf44ad3e1249f6398077b90834/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/server/ ServerBearerTokenAuthenticationConverter.java#L57

但它似乎默认被禁用 -

https://github.com/spring-projects/spring-security/blob/master/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/server/ ServerBearerTokenAuthenticationConverter.java#L48

现在,在此处直接创建的 spring 层次结构之外无法访问该类 -

https://github.com/spring-projects/spring-security/blob/master/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java#L955

问题?

在我的代码中是否可以将此allowUriQueryParameter设置为true?

更新

我正在创建一个 OAuth2 资源服务器。不幸的是,OAuth2ResourceServerSpec 不允许设置authenticationConverter。

spring spring-security spring-boot spring-security-oauth2 spring-webflux

3
推荐指数
1
解决办法
4502
查看次数

类路径中存在多个 ehcache.xml

如果类路径中有多个ehcache.xml 文件会发生什么?哪一个会被捡起?

java ehcache

2
推荐指数
1
解决办法
931
查看次数