我试图将一些asp逻辑分成一个单独的页面.现在,我试图调用一个简单的函数.
这是我正在使用的简单索引页面
<html>
<head>
<title>Calling a webservice from classic ASP</title>
</head>
<body>
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
%>
<!--#include file="aspFunctions.asp"-->
<%
doStuff()
End If
%>
<FORM method=POST name="form1" ID="Form1">
ID:
<INPUT type="text" name="corpId" ID="id" value="050893">
<BR><BR>
<INPUT type="submit" value="GO" name="submit1" ID="Submit1" >
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是aspfunctions.asp
sub doStuff()
Response.Write("In Do Stuff")
end sub
Run Code Online (Sandbox Code Playgroud)
当我点击我的表单上的提交按钮时,我得到下面的子doStuff()Response.Write("In Do Stuff")end sub
Microsoft VBScript运行时错误'800a000d'
有谁知道我可能做错了什么?
任何帮助是极大的赞赏
感谢Damien Type不匹配:'doStuff'
/uat/damien/index.asp,第15行
\n\n\n24.3\xc2\xa0Application 属性文件 SpringApplication 将从以下位置的 application.properties 文件加载属性,并将它们添加到 Spring 环境中:
\n\n当前目录的 /config 子目录。
\n\n当前目录
\n\n类路径 /config 包
\n\n类路径根
\n
它两次提到当前目录,但这实际上没有任何意义:
\n\n我尝试将其放在项目的根目录中(即上面与和src的输出匹配的文件夹中),并且我尝试将其与 war 文件放在一起(即在)java.io.File( "." ).getCanonicalPath()System.getProperty("user.dir");build\\libs
但唯一真正有效的放置位置是默认位置 ( src\\main\\resources)。
那么“当前目录”是什么意思以及文件真正去哪里呢?
\n\n我需要找到文件的正确外部位置,这样我就不必在应用程序中构建数据库凭据。
\n\n指南说放入application.properties当前目录将起作用,我找到了将其放入的确切当前目录,但它仍然不起作用,我可以通过以下输出来验证:System.out.println(System.getProperty("spring.datasource.url"));它null确实仅使用嵌入的属性文件。