小编rag*_*147的帖子

什么是tomcat中的localhost访问日志?

我想知道tomcat中的本地主机访问日志是什么?我们可以通过这些日志监控哪些信息以及如何通过Java程序读取它们?

tomcat

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

Sonar如何计算圈复杂度?

声纳给我以下圈复杂度数:22。

对于以下程序:

private static SomeDto checkSomething(AnotherDto anotherDto, String reference)
{
SomeDto someDto = new SomeDto();

// condition 1
if (!someDto.getA())
    return new SomeDto("bla1", "blabla");

// condition 2
if (someDto.getName2() == null || checkSurName(anotherDto.getName()))
    return new SomeDto("bla2", "blabla");

// condition 3
if (someDto.getName3() == null || checkSurName(anotherDto.getName()))
    return new SomeDto("bla3", "blabla");

// condition 4
if (someDto.getName4() == null && checkSurName(anotherDto.getName()))
    return new SomeDto("bla4", "blabla");

// condition 5
if (someDto.getName5() == null || checkSurName(anotherDto.getName()))
    return new SomeDto("bla5", "blabla");

// condition 6
if …
Run Code Online (Sandbox Code Playgroud)

java graph-theory cyclomatic-complexity checkstyle sonarqube

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

什么是 Jbossstandalone.xml?其目的是什么?

我知道要运行 JBoss,我们需要standalone.xml,但我不明白standalone.xml 文件中的内容。

有人可以用例子向我解释其中定义的内容吗?

谢谢

jboss application-server

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