Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fun ERR! additional Resources/jfinal-4.9-spring-boot-2.3.0: Unexpected property jfinal-4.9-spring-boot-2.3.0 #1126

Open
litongjava opened this issue Jun 27, 2021 · 0 comments

Comments

@litongjava
Copy link

将spring-boot应用发布到计算函数时出现上面的错误,发布的过程如下
spring-boot应用开源地址

https://gitee.com/litongjava_admin/jfinal-4.9-spring-boot-2.3.0

使用mvn package命令打包,执行成功

cd jfinal-4.9-spring-boot-2.3.0
mvn pakcage

执行fun deploy -y发布时出现下面的错误

E:\dev_workspace\java\project-litongjava\jfinal-4.9-spring-boot-2.3.0>fun deploy -y
current folder is not a fun project.
Generating template.yml...
Generate Fun project successfully!


========= Fun will use 'fun deploy' to deploy your application to Function Compute! =========
fun ERR! additional Resources/jfinal-4.9-spring-boot-2.3.0: Unexpected property jfinal-4.9-spring-boot-2.3.0
fun ERR! template is not valid

E:\dev_workspace\java\project-litongjava\jfinal-4.9-spring-boot-2.3.0>cat template.yml
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
  jfinal-4.9-spring-boot-2.3.0: # service name
    Type: 'Aliyun::Serverless::Service'
    Properties:
      Description: This is FC service
    jfinal-4.9-spring-boot-2.3.0: # function name
      Type: 'Aliyun::Serverless::Function'
      Properties:
        Handler: index.handler
        Runtime: custom
        CodeUri: ./
        MemorySize: 1024
        InstanceConcurrency: 5
        Timeout: 120

      Events:
        httpTrigger:
          Type: HTTP
          Properties:
            AuthType: ANONYMOUS
            Methods: ['GET', 'POST', 'PUT']
  Domain:
    Type: Aliyun::Serverless::CustomDomain
    Properties:
      DomainName: Auto
      Protocol: HTTP
      RouteConfig:
        Routes:
          "/*":
            ServiceName: jfinal-4.9-spring-boot-2.3.0
            FunctionName: jfinal-4.9-spring-boot-2.3.0

E:\dev_workspace\java\project-litongjava\jfinal-4.9-spring-boot-2.3.0>

猜测Resources/jfinal-4.9-spring-boot-2.3.0中的jfinal-4.9-spring-boot-2.3.0是不符合funcraft的命名规则,但是jfinal-4.9-spring-boot-2.3.0的命名规则在时间项目中很常用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant