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

master
mjkhan21 1 year ago
parent 3418fee377
commit 9f3ab10333

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

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

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

Loading…
Cancel
Save