This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // divide by chunk size to in query | |
| fun getVendorGroupDTOs( | |
| vendorGroupIds: List<Long>, | |
| vendor: OneIdVendor | |
| ) = vendorGroupIds.chunked(GROUP_CHUCK_SIZE).flatMap { chunk -> | |
| log.info { "findByVendorGroupIds. oneId=${vendor.oneId}, chunk.size=${chunk.size}" } | |
| vendorGroupService.findByVendorGroupIds(chunk) | |
| } | |
| // all where values to in query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests, json, os | |
| def call_api(fid): | |
| url = 'https://www.naver.com/events' | |
| headers = {'X-d': fid} | |
| query = {'lat':'45', 'lon':'180'} | |
| response = requests.delete(url, headers=headers, params=query) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests, json, os, time | |
| def call_api(fid): | |
| url = 'https://www.naver.com?{}'.format(fid) | |
| query = {'lat':'45', 'lon':'180'} | |
| response = requests.get(url, params=query) | |
| # print(response.json()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.class | |
| # Mobile Tools for Java (J2ME) | |
| .mtj.tmp/ | |
| # Package Files # | |
| *.jar | |
| *.war | |
| *.ear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| is_debug = 0 | |
| def findIt(): | |
| print("run") | |
| if __name__ == "__main__": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ tag description="공통 레이아웃" pageEncoding="UTF-8" language="java" %> | |
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| <%@ attribute name="meta_inner" fragment="true" %> | |
| <%@ attribute name="head_inner" fragment="true" %> | |
| <%@ attribute name="gnb_inner" fragment="true" %> | |
| <%@ attribute name="body_inner" fragment="true" %> | |
| <%@ attribute name="javascript" fragment="true" %> | |
| <!doctype html> | |
| <html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UserInterceptor extends HandlerInterceptorAdapter { | |
| private static final Logger LOG = LoggerFactory.getLogger(UserInterceptor.class); | |
| @Override | |
| public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { | |
| if (!(handler instanceof HandlerMethod)) { | |
| return true; | |
| } | |
| prepareUser(request); | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ControllerAdvice(basePackageClasses = RootPackageMarker.class, annotations = Controller.class) | |
| public class UserInfoAdvice { | |
| private static final Logger LOG = LoggerFactory.getLogger(UserInfoAdvice.class); | |
| /** | |
| * Gets the user. | |
| * | |
| * @param request the request | |
| * @param response the response | |
| * @return the user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Configuration | |
| @EnableWebMvc | |
| @EnableSwagger2 | |
| @ComponentScan(basePackageClasses = RootPackageMarker.class, useDefaultFilters = false, includeFilters = { | |
| @ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class), @ComponentScan.Filter(type = FilterType.ANNOTATION, value = ControllerAdvice.class)}) | |
| @Import({SwaggerConfig.class, SpringSecurityConfig.class}) | |
| public class SpringMvcConfig extends WebMvcConfigurerAdapter { | |
| @Bean | |
| public InternalResourceViewResolver internalResourceViewResolver() { | |
| return new InternalResourceViewResolver() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP GET: | |
| https://haveibeenpwned.com/api/v2/breachedaccount/foo | |
| HTTP GET: | |
| https://haveibeenpwned.com/api/breachedaccount/foo?version=2 | |
| HTTP GET: | |
| https://haveibeenpwned.com/api/breachedaccount/foo |
NewerOlder