@HandleException(IOException.class) public void readFile(String filePath) throws IOException { // ... } public static void main(String[] args) { MyClass myClass = new MyClass(); try { myClass.readFile("myfile.txt"); } catch (IOException e) { } } <dependency> <groupId>com.github.wuicNoodle</groupId> <artifactId>alchemy-annotations</artifactId> <version>1.0.0</version> </dependency> com.github.wuicnoodle.alchemy.annotations.AlchemyAnnotationsProcessor


上一篇:
下一篇:
切换中文