'How to use dynamically generated class files in Java?
In the project, I dynamically generate a POJO class. After generating this POJO class, I need to use this class in other places, but there will be an error "symbol not found". For example, when I generate this class with the name of "User" and use "User" in the code generated in another section, there will be an error of symbol not found.
public void run(SourceContext<User> sourceContext) throws Exception
In this automatically generated code, the prompt cannot find the symbol "User",How can I solve this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|