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
CamundaProcessAutodeployment PostConstruct ERROR #18
Comments
You are right - thanks for reporting this! Linking the code in question: I wonder how we can easily prevent this. Spontaneous ideas:
Any feedback @houkunlin? |
我的一个想法,自定义个一个属性对象,让SpringBoot从配置文件读取配置的资源信息。 经过简单测试好像发现存在一个问题,在 IDEA开发工具中直接运行项目时camundaResource.getFile() 正常,但是打包成jar后无法获取到文件内容 One of my ideas is to customize a property object and let SpringBoot read the configured resource information from the configuration file. After a simple test, it seems that there is a problem. When running the project directly in the IDEA development tool, camundaResource.getFile() is normal, but the file content cannot be obtained after packaging it into a jar. |
This brings me to one idea that should be easy to do: allow to externalize the resource patterns like this: @Value("${camunda.autoDeploy.formResources:'classpath*:**/*.form'")
private Resource[] formResources; WDYT @houkunlin? This way, Spring still discovers a proper resource and getFile should work in any setting. |
I added a change accordingly: bc2ec1e - that should allow you to solve your problem - right? Honestly: I have no idea how IntelliJ builds up that list - might be simply scanning existing config files for what it finds? But I would not consider this a show stopper anyway |
如果有文档提示应该没问题。IDEA的那个配置文件提示内容实际是由SpringBoot的一个提示规则提供的,如果使用一个类来定义配置属性信息(在类上加 It should be fine if there are documentation hints. The configuration file prompt content of IDEA is actually provided by a prompt rule of SpringBoot. If you use a class to define configuration property information (add @Data
@Configuration
@ConfigurationProperties("camunda.deploy")
public class MyProperties {
/**
* enable auto deploy
*/
private boolean enable = false;
}
|
Great hint - would make sense to introduce a properties class for this then - right? |
Closing this for inactivity |
When there is an feign-form-spring-3.8.0 dependent library,
resourcesToDeploy
will scanfeign-form-spring-3.8.0.jar!/META-INF/maven/io.github.openfeign.form/
, then camundaResource.getFile() will errorThe text was updated successfully, but these errors were encountered: