기본 콘텐츠로 건너뛰기

nginx.conf

user www-data ; worker_processes auto ; pid /run/nginx.pid ; include /etc/nginx/modules-enabled/ * .conf ; events { worker_connections 768 ; # multi_accept on; } http { ## # Basic Settings ## sendfile on ; tcp_nopush on ; types_hash_max_size 2048 ; client_max_body_size 10 M ; # Set client upload size = 10Mbyte # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types ; default_type application/octet-stream ; ## # SSL Settings ## ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3 ; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on ; ## # Logging Settings ## access_log /var/log/nginx/access.log ; error_log /var/log/nginx/error.log ; ## # Gzip Settings ## gzip on ; # gzip_vary on

React, 상위 컴포넌트에서 하위 컴포넌트로 속성 전달하기

 start # 상위 컴포넌트 // 생략 // < ProductsName className ={ styles.submenu } /> // 생략 // # 하위 컴포넌트 // 생략 // interface ProductsNavProps { className ?: string ; } ProductsNav .defaultProps = { className: "" , }; function ProductsNav ( props : ProductsNavProps ) { const { className } = props ; return ( < ul className ={ className } > < li >제품</ li > </ ul > ); } // 생략 // end

Spring 파일 사용법

@Service public class FileService { @Autowired private ResourceLoader resourceLoader; private static final String PATH = "classpath:/static/files/catalogs/" ; public ResponseEntity<Resource> download ( HttpServletRequest request , String path , String filename ) { try { Resource resource = resourceLoader . getResource( PATH + path + "/" + filename); return ResponseEntity . ok() // .header(HttpHeaders.CONTENT_DISPOSITION, "attach; filename=\"" + filename + // "\"") .header( HttpHeaders . CONTENT_DISPOSITION , "inline; filename= \" " + filename + " \" " ) // .header(HttpHeaders.CONTENT_TYPE, // MediaType.APPLICATION_OCTET_STREAM.toString()) .header( HttpHeaders . CONTENT_TYPE , MediaType . APPLICATION_PDF . toSt

Github Pages 사용법

# gh-pages 설치 $ npm i -D gh-pagesad $ yarn add -D gh-pages 참고 사이트 :  https://www.jasonchoi.dev/posts/publish-nextjs-to-gh-pages end

Spring과 React 연동

  출처 :  https://velog.io/@sians0209/Spring-%EB%A6%AC%EC%95%A1%ED%8A%B8-%EC%8A%A4%ED%94%84%EB%A7%81-%EC%97%B0%EA%B2%B0