我想知道tomcat中的本地主机访问日志是什么?我们可以通过这些日志监控哪些信息以及如何通过Java程序读取它们?
声纳给我以下圈复杂度数: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
我知道要运行 JBoss,我们需要standalone.xml,但我不明白standalone.xml 文件中的内容。
有人可以用例子向我解释其中定义的内容吗?
谢谢