반응형 개발135 [Java] Base64Encoding(예 : 이미지) package com.example.demo.controller; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IOException; import java.util.Base64; public class testController { public static void main(String []args) throws IOException { final String DATA_DIR = "C:\\imege\\"; File dir = new File(DATA_DIR); String path = DATA_DIR; String fileName = ""; // 폴더 내의 모든 파일을 읽어온다 String[] filenames =.. 2023. 3. 12. [Spring Boot] log4j 설정 application.properties #### Database # oracle spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.url=jdbc:log4jdbc:oracle:thin:@localhost:1521/XE spring.datasource.username=system spring.datasource.password=0000 # mysql spring.datasource.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.url=jdbc:mysql://127.0.0.1:3306/demo?autoReconn.. 2023. 3. 10. [Spring Boot] application.properties(oracle연동, devtools, thymeleaf) # 포트 지정server.port=9090#### Databasespring.datasource.driver-class-name=oracle.jdbc.OracleDriverspring.datasource.url=jdbc:oracle:thin:@localhost:1521/XEspring.datasource.username=systemspring.datasource.password=0000#### thymeleafspring.thymeleaf.prefix=classpath:templates/spring.thymeleaf.check-template-location=truespring.thymeleaf.suffix=.htmlspring.thymeleaf.mode=HTML5spring.thymeleaf.cache.. 2023. 3. 10. 이전 1 ··· 20 21 22 23 다음 반응형