Skip to content

xss-stage/xss-extension-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Press Star

Hits made with love
needed jdk version
api-version

์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” xss-core์— json์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” XssFilter๊ตฌํ˜„์ฒด๋ฅผ ๋“ฑ๋ก์‹œํ‚ค๋ฉฐ, Json์„ ๊ฐ์ฒด๋กœ ๋ฐ”๊พธ๋Š” ์ƒํ™ฉ์—์„œ Xss ์— ์•ˆ์ „ํ•œ ๊ฐ์ฒด๋ฅผ ์–ป์„๋•Œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ฃผ์˜ํ• ์ ์€, ์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ด์šฉํ•ด์„œ LocalDate, LocalDateTime๊ณผ ๊ฐ™์€ ํ•„๋“œ๋ฅผ ํฌํ•จํ•˜๋Š” ๊ฐ์ฒด๋ฅผ ํŒŒ์‹ฑํ•˜๋ ค๊ณ  ํ•˜๋Š” ๊ฒฝ์šฐ, ํ•ด๋‹นํ•˜๋Š” field์— @JsonDeserialize(using = LocalDateDeserializer.class)์™€ @JsonSerialize(using = LocalDateSerializer.class) ๋ฅผ ๋ช…์‹œํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ํ•„ํ„ฐ๋ง ๊ฐ์ฒด์˜ key์— Xss ํ•„ํ„ฐ๋ง ๋Œ€์ƒ ๋ฌธ์ž๊ฐ€ ์žˆ๋‹ค๋ฉด, key๋˜ํ•œ ํ•„ํ„ฐ๋ง ๋ฉ๋‹ˆ๋‹ค.

์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ฃผ์ž…๋ฐ›์œผ๋ฉด, ๋‹ค์Œ๊ณผ ๊ฐ™์ด @Xss์˜ value๋กœ json์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    @Xss("json")

์ž์„ธํ•œ ์‚ฌ์šฉ๋ฒ•์€ ์—ฌ๊ธฐ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.