小编Ant*_* E.的帖子

使VBA集合变空

我在Visual Basic for Aplications中有一个Collection对象的问题(我用它与Excel一起使用)

我有这个代码试图清空我必须重用的Collection对象:

Sub limpieza(ByRef listilla As Collection)

    While listilla.Count <> 0
        listilla.Remove (listilla.Count)
    Wend

End Sub
Run Code Online (Sandbox Code Playgroud)

但当我打电话给:

Dim listado As New Collection
<I have some code here that add some values to the collection>
limpieza (listado)
Run Code Online (Sandbox Code Playgroud)

VBA对我说

参数不是可选的

并且代码不会运行.

我能做什么?我需要在循环的底部使用此集合清理,该循环重用Collection对象.

collections vba arguments list

9
推荐指数
2
解决办法
3万
查看次数

现有的 SecurityFilterChain 正在阻止我在 Spring Security 上的配置?

我正在最新的 Spring Security 版本上进行配置。基于 Beans 而不是已弃用的WebSecurityConfigurerAdapter.

我按照 Spring 的建议配置一个BeanforSecurityFilterChain和另一个 forWebSecurityCustomizer

这是一个带有 MVC 的 Spring Boot 项目,用于 REST API。

我收到有关尝试修改SecurityFilterChainBean 但不允许这样做的错误:

20... ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'filterChainApi' defined in class path resource [.../config/jwt/config/JWTWebSecurityConfig.class]: Unsatisfied dependency expressed through method 'filterChainApi' parameter 0; …
Run Code Online (Sandbox Code Playgroud)

java spring spring-security spring-boot

6
推荐指数
2
解决办法
7014
查看次数

如何修复 .gs 脚本中的字符集问题?

我有字符集问题。

我在 google-app-engine 中解析了一个 csv 文件,然后发布到一个 uiapp 表。但是我检查了像 áéíóú 这样的特殊字符,但这些字符没有很好地显示(?方形符号)。

当我设置我的代码时,我编写了导入到 google docs 文档的字符串,它的工作原理是一样的。

请给一些建议?

我搜索:

  • 代码的全局字符集定义。或者
  • 使字符看起来像我想要的字符串 var 转换。(避免 html&number定义。
  • 这与 blob 对象有关吗?

重要的是我来自西班牙,我们需要这样的角色。

获取 csv ';' 的应用程序 分隔文件并显示其内容

我发布了我所有的代码,它几乎没有给出的教程。

function arreglaUrl(cadena){
  var texto = cadena[cadena.length - 2]
  if (texto == ''){
    cadena[cadena.length - 2] = 'Sin enlace';
  }
  else{
    cadena[cadena.length - 2] = '<center><a href=\"'+ texto + '\">Link.</a></center>' ;
  };

}

function parsedCSV(){

  var listaArchivos = DocsList.getFolderById('XXXXX').getFiles()

  for (var i = 0; i < listaArchivos.length; i++) …
Run Code Online (Sandbox Code Playgroud)

utf-8 character-encoding google-apps-script

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