Skip to content

yml수정#44

Merged
hongjm0912 merged 1 commit into
mainfrom
develop
Dec 29, 2025
Merged

yml수정#44
hongjm0912 merged 1 commit into
mainfrom
develop

Conversation

@hongjm0912

Copy link
Copy Markdown
Collaborator

개요

작업한 내용을 1~3문장으로 짧게 정리합니다.

본문

작업한 내용을 자세히 설명합니다.

피드백 - optional

본인이 작성한 코드에 피드백이 필요할 때

변경 - optional

기존에 있던 무언가가 변경 되었을 때

사용 방법 - optional

사용 방법이 복잡하여 사용 방법 설명이 필요할 때

기타 - optional

@hongjm0912 hongjm0912 merged commit 830e5e8 into main Dec 29, 2025
2 checks passed
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @hongjm0912, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 Spring Boot 애플리케이션의 멀티파트 요청에 대한 파일 크기 제한을 제거하는 것을 목표로 합니다. 이는 서버의 기본 또는 이전에 구성된 제한에 구애받지 않고 모든 크기의 파일을 업로드할 수 있도록 합니다.

Highlights

  • 멀티파트 파일 업로드 설정: Spring Boot 애플리케이션에서 멀티파트 요청 시 파일 크기 제한을 해제하도록 application.ymlspring.servlet.multipart.max-file-sizespring.servlet.multipart.max-request-size를 -1로 설정했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 application.yml 파일을 수정하여 파일 업로드 크기를 무제한으로 설정합니다. 이는 서비스 거부(DoS) 공격과 관련된 심각한 보안 취약점을 야기합니다. 이 위험을 완화하기 위해 합리적인 파일 크기 제한을 설정하도록 제안하는 의견을 추가했습니다.

Comment on lines +40 to +41
max-file-size: -1
max-request-size: -1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

max-file-sizemax-request-size-1 (무제한)으로 설정하면 서비스 거부(DoS) 공격에 취약해질 수 있습니다. 악의적인 사용자가 매우 큰 파일을 업로드하여 서버의 디스크 공간, 메모리 등의 리소스를 고갈시킬 수 있습니다.

애플리케이션의 요구사항에 맞는 적절한 파일 크기 제한을 설정하는 것이 좋습니다. 예를 들어, 10MB로 제한하려면 다음과 같이 설정할 수 있습니다.

spring:
  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB
      max-file-size: 10MB
      max-request-size: 10MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant