|
|
@ -23,6 +23,7 @@ import java.io.File; |
|
|
|
import java.io.FileWriter; |
|
|
|
import java.io.FileWriter; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.Writer; |
|
|
|
import java.io.Writer; |
|
|
|
|
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.Optional; |
|
|
@ -78,7 +79,7 @@ public class NoteController { |
|
|
|
paperNote.setUserName(username); |
|
|
|
paperNote.setUserName(username); |
|
|
|
paperNoteRepository.save(paperNote); |
|
|
|
paperNoteRepository.save(paperNote); |
|
|
|
} |
|
|
|
} |
|
|
|
wr = new FileWriter(f); |
|
|
|
wr = new FileWriter(f, StandardCharsets.UTF_8); |
|
|
|
wr.write(noteForm.getContent()); |
|
|
|
wr.write(noteForm.getContent()); |
|
|
|
return ResponseDataUtil.buildSuccess(note); |
|
|
|
return ResponseDataUtil.buildSuccess(note); |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|