我试图在 IntelliJ Idea 上运行一个芭蕾舞女演员程序。然后,编辑配置出现,它说
Error: Main run kind is selected, but the file does not contain a main function.
我该怎么办 ?我应该在程序参数中选择什么。
源代码:
import ballerina.net.http;
import ballerina.lang.messages;
@http:BasePath {value:"/helloservice"}
service helloService {
@http:GET {}
@http:PATH {value:"/hello?name={name}"}
resource hello (message m, @http:QueryParam {value:"name"} string name) {
string respStr = "Hello, World " + name + "!\n";
message responce = {};
messages:setStringPayload(response, respStr);
reply response;
}
}