Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
@Component
public class MyUploadProcessor {
	
	@FileResolver
	public String process1(UploadFile file, Map<String, Object> parameter) {
		try {
			file.transferTo(new File(""./target/upload/"+file.getFileName()));
		} catch (IllegalStateException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		return file.getFileName();
	}
}

...