jdk 1.8 -> 17, @Component("...") 추가, 사용자 아이디 관련 변경

master
mjkhan21 1 year ago
parent 3418fee377
commit 9f3ab10333

@ -12,7 +12,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version> <java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
@ -120,8 +120,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>1.8</source> <source>${java.version}</source>
<target>1.8</target> <target>${java.version}</target>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>

@ -8,7 +8,6 @@ import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.net.URLConnection; import java.net.URLConnection;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64; import java.util.Base64;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -215,7 +214,7 @@ public class FileInfo extends AbstractEntity {
* @return FileInfo * @return FileInfo
*/ */
public List<FileInfo> createFileInfos(Relation relation, File... files) { public List<FileInfo> createFileInfos(Relation relation, File... files) {
return createFileInfos(relation, Arrays.asList(files)); return createFileInfos(relation, List.of(files));
} }
/** , FileInfo . /** , FileInfo .
@ -263,7 +262,7 @@ public class FileInfo extends AbstractEntity {
* @return FileInfo * @return FileInfo
*/ */
public List<FileInfo> createFileInfos(DataHolder... dataHolders) { public List<FileInfo> createFileInfos(DataHolder... dataHolders) {
return createFileInfos(Arrays.asList(dataHolders)); return createFileInfos(List.of(dataHolders));
} }
/** DataHolder FileInfo . /** DataHolder FileInfo .

@ -1,6 +1,5 @@
package cokr.xit.base.file.service; package cokr.xit.base.file.service;
import java.util.Arrays;
import java.util.List; import java.util.List;
import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.FileInfo;
@ -68,7 +67,7 @@ public interface FileService {
* @return * @return
*/ */
default int create(FileInfo... files) { default int create(FileInfo... files) {
return create(Arrays.asList(files)); return create(List.of(files));
} }
/** . /** .

@ -1,7 +1,6 @@
package cokr.xit.base.file.web; package cokr.xit.base.file.web;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -48,7 +47,7 @@ public class FileInfoFactory extends FileInfo.Factory {
* @return FileInfo * @return FileInfo
*/ */
public List<FileInfo> makeFileInfos(FileInfo.Relation relation, MultipartFile... multipartFiles) { public List<FileInfo> makeFileInfos(FileInfo.Relation relation, MultipartFile... multipartFiles) {
return makeFileInfos(relation, Arrays.asList(multipartFiles)); return makeFileInfos(relation, List.of(multipartFiles));
} }
/** , FileInfo . /** , FileInfo .

Loading…
Cancel
Save