-
Notifications
You must be signed in to change notification settings - Fork 610
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
Error using GCP with a springbootApplication extended custom tag in my application main class #1076
Comments
I was not above to reproduce the error given your explanation. Please provide a working sample (i.e., small project that reproduces the issue, push it to github so we can tale a look) |
For privacy reasons of the code, I cannot upload an example to a public repository. I will try to explain it in more detail in case it is of any further assistance. In my case, I do not directly use Spring Boot; instead, I use a library created by me that extends Spring Boot. This means that in my main class, I do not use the @SpringBootApplication annotation, but rather I use @MyLibraryApplication. Not including the @SpringBootApplication annotation causes the error I mentioned. However, the @MyLibraryApplication annotation does not include anything more than what the @SpringBootApplication includes. I do not understand why the error occurs for that reason. Example of a normal main class of a spring boot project:
}` Example of my main class with my own library:
}` Code of my library annotation: }` As you can see, even when using my library, it is still a Spring Boot application without adding anything additional. However, just because of the absence of the @SpringBootApplication annotation, it no longer works. |
Describe the bug
I am making a serverless application with gcp-adapter. In the main class of my application instead of using @SpringBootApplication I am using a custom tag that extends @SpringBootApplication (below you can see the code). The problem is that with my tag the application launches but when testing my function it returns error 500, with exactly the same code but using the @SpringBootApplication tag it does work correctly.
Sample
I give you the code of my main class:
`
@CustomTagExample
public class Application {
}
`
And the code of @CustomTagExample is the following:
`
@target(ElementType.TYPE)
@retention(RetentionPolicy.RUNTIME)
@SpringBootApplication
public @interface CustomTagExample {
}
`
Error
Here I show you the error:
The text was updated successfully, but these errors were encountered: