小编use*_*957的帖子

jhipster-如何添加新角色

我正在尝试在使用JHipster生成的项目上添加一个新角色(ROLE_REPORTS).我可以看到需要更新的表(角色,权限和role_authority映射),但我不知道如何去解决它的Java部分.

我可以想出一些零碎的东西,但我担心我的定制可能会破坏一些设计理念(如Swagger API,Spring Security等)

有没有人已经尝试过,如果有的话,任何正确方向的帮助都将受到高度赞赏.

java jhipster

26
推荐指数
1
解决办法
1万
查看次数

linux如何在特定文件夹中查找特定文件

这是我的文件夹结构:

/site1/myFolder/otherFolder1/a.gif

/site1/myFolder/otherFolder1/b.png

/site1/myFolder/otherFolder1/c.php

...

/site2/myFolder/otherFolder2/d.gif

/site2/myFolder/otherFolder2/e.png

/site2/myFolder/otherFolder2/f.php

...

/site3/myFolder/otherFolder3/g.gif

/site3/myFolder/otherFolder3/h.png

/site3/myFolder/otherFolder3/i.php

...

到目前为止:

find /var/www/html -type d -name myFolder -exec find {} -name "*.php"  \;

for i in `find /var/www/html -type d -name myFolder -exec find {} -name "*.php"  \;`
  do
    some_house_keeping_here
  done
Run Code Online (Sandbox Code Playgroud)

但我想做这样的事情:

find /var/www/html -type d -name myFolder -exec find {} -name "*.php" -exec do_some_housekeeping {} \; \;
Run Code Online (Sandbox Code Playgroud)

linux find

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

ASP .Net MapRequestHandler 慢

我们推出了一个经典的 ASP.Net WebService 应用程序,流量很大。尽管我们的数据库运行良好(<10 ms 响应时间),但 WebServer 上花费的大部分时间都在 MapRequestHandler 阶段。

新遗物请求分解

在此处输入图片说明

这个问题似乎在 ASP .Net 堆栈中很深,并且没有任何可用的网络信息,我对如何改进它一无所知。

我们对请求/响应使用 XML 有效负载(如果这有助于提供解决方案)。

c# asp.net iis web-services

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

Elasticsearch Filebeat 文档类型已弃用问题

我目前正在使用 ELK 5.5。现在看来 document_type 在 Filebeats 中已被弃用,但我现在在任何地方都找不到任何关于如何实现相同的示例。

这是我在日志中得到的:

WARN DEPRECATED: document_type is deprecated. Use fields instead.
Run Code Online (Sandbox Code Playgroud)

这是我当前的 filebeat 配置:

- input_type: log

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - C:\inetpub\logs\LogFiles\*\*
  document_type: iislog

  paths:
    - C:\MyApp\logs\*
  document_type: applog
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我如何在使用相同的 5.5 版时重写我的日志并摆脱此弃用消息。顺便说一句,我确实想对两种“文档类型”使用相同的 ES 索引。

elasticsearch filebeat

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

Dotnet 在没有互联网的情况下运行/恢复(离线模式)

我有一台 Windows 服务器,在其中成功安装并恢复了我的 dotnet core 项目(当时我在服务器上有出站互联网连接)。该应用程序实例现在运行良好。

现在,作为数据中心政策的一部分,出站互联网访问已被撤销。不过,我有 VPN 和远程桌面访问权限。现在,我尝试将我的工作项目克隆到一个单独的文件夹中并创建另一个实例(在不同的端口上)。

但是当dotnet run在我的新项目文件夹上使用时(除了少数设置之外的所有内容都相同),我收到此错误:

$ dotnet run
C:\Program Files (x86)\dotnet\sdk\2.2.102\NuGet.targets(114,5): error :  
Unable to load the service index for source https://api.nuget.org
/v3/index.json. [C:\xxxx\xxxx\xxxx.csproj]
C:\Program Files (x86)\dotnet\sdk\2.2.102\NuGet.targets(114,5): error :   
A connection attempt failed because the connected party did not properly 
respond after a period of time, or established connection failed because 
connected host has failed to respond [C:\xxxx\xxxx\xxxx.csproj]

The build failed. Please fix the build errors and run again.
Run Code Online (Sandbox Code Playgroud)

我查了一下C:\Users\xxxxxx\.nuget\packages,所有需要的包都可用。 …

deployment nuget .net-core

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