我在Tomcat 6上部署了一个应用程序,在部署之后,我想对我的常量类进行一些更改,并且我只将常量类(.class文件)上传到爆炸的war文件中.
即使我重新启动服务器几次后,我所做的更改也不会显示.
我改变的只是常量中的一些字符串.除了再次上传war文件外,你还建议我做什么?
int maxValue = m[0][0];
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
if ( m[i][j] >maxValue )
{
maxValue = m[i][j];
}
}
}
cout<<maxValue<<endl;
int sum = 0;
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
sum = sum + m[i][j];
}
}
cout<< sum <<endl;
Run Code Online (Sandbox Code Playgroud)
对于上面的代码,如果我们绘制这样的流程图
基本独立路径将遵循六
路径1:1 2 3 10 11 12 13 …
metrics cyclomatic-complexity code-metrics path-finding unstructured-loop
code-metrics ×1
constants ×1
java ×1
java-ee ×1
metrics ×1
path-finding ×1
tomcat ×1
tomcat6 ×1