2025-04-03 11:37
@杜福忠 杜总威武,自定义重新实现ClassPathSource就可以了
public MyClassPathSource(String baseTemplatePath, String fileName, String encoding) {
		this.finalFileName = buildFinalFileName(baseTemplatePath, fileName);
		this.fileName = fileName;
		this.encoding= encoding;
		this.classLoader = getClassLoader();
		this.url = classLoader.getResource(finalFileName);
		if (url == null) {
			try {
				File file = new File(finalFileName);
				if(file.exists()) {
					this.url = file.toURI().toURL();
				} else {
					file = new File("src/main/webapp/"+finalFileName);
					if(file.exists()) {
						this.url = file.toURI().toURL();
						this.finalFileName="src/main/webapp/"+finalFileName;
					} else {
						file = new File("webapp/"+finalFileName);
						if(file.exists()) {
							this.url = file.toURI().toURL();
							this.finalFileName="webapp/"+finalFileName;
						}else {
							this.url = classLoader.getResource("webapp/"+finalFileName);
							this.finalFileName = "webapp/"+finalFileName;
						}
					}
				}
			} catch (MalformedURLException e) {
				e.printStackTrace();
			}
			
			if(url==null) 
				throw new IllegalArgumentException("File not found in CLASSPATH or JAR : \"" + finalFileName + "\"");
		} 
		processIsInJarAndlastModified();
	}
2025-01-21 15:50
@北流家园网 就是直接同步所有接口,开发调试接口,然后一键保存数据就生成api了;
核心功能和apifox差不多的,但是apifox需要手动添加接口,apidev不需要,一键同步就完事了,还可以管理项目所有接口
2025-01-20 15:06
@北流家园网 你的项目不是标准的jfinal项目,没有加载配置项,需要新增指定配置文件:apidev-config.txt,
然后设置配置项:apidev.stop=false