修正拼写错误
This commit is contained in:
@@ -22,11 +22,19 @@ public class CodeStatistic {
|
|||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String file = CodeStatistic.class.getResource("/").getFile();
|
String file = CodeStatistic.class.getResource("/").getFile();
|
||||||
String path = file.replace("web/target/test-classes", "");
|
String path = file.replace("/jeesite/common/target/test-classes", "");
|
||||||
|
System.out.println("Path: " + path);
|
||||||
ArrayList<File> al = getFile(new File(path));
|
ArrayList<File> al = getFile(new File(path));
|
||||||
for (File f : al) {
|
for (File f : al) {
|
||||||
if (f.getName().matches(".*\\.java$")){ // 匹配java格式的文件
|
if (!(f.getPath().contains("4.0\\jeesite\\")
|
||||||
|
|| f.getPath().contains("\\devtools\\")
|
||||||
|
|| f.getPath().contains("\\framework\\"))
|
||||||
|
|| f.getPath().contains("\\target\\")){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (f.getName().matches(".*\\.java$")
|
||||||
|
|| f.getName().matches(".*\\.html$")
|
||||||
|
|| f.getName().matches(".*\\.js$")){
|
||||||
count(f);
|
count(f);
|
||||||
System.out.println(f);
|
System.out.println(f);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
@RequestMapping(value="${adminPath}/state/server")
|
@RequestMapping(value="${adminPath}/state/server")
|
||||||
public class ServerStateController {
|
public class ServerStateController {
|
||||||
|
|
||||||
@RequiresPermissions("sys:stste:server")
|
@RequiresPermissions("sys:state:server")
|
||||||
@RequestMapping(value="")
|
@RequestMapping(value="")
|
||||||
public String index(){
|
public String index(){
|
||||||
return "modules/state/serverIndex";
|
return "modules/state/serverIndex";
|
||||||
|
|||||||
Reference in New Issue
Block a user