웹취약점

This commit is contained in:
JSYOO 2021-12-02 13:19:15 +09:00
parent 2e7edf1477
commit 87c6a9a51e
3 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.security.access.annotation.Secured; import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -54,7 +55,9 @@ import nlib.util.StringUtil;
public class CartController extends NlibCommonController public class CartController extends NlibCommonController
{ {
private static final Logger log = LoggerFactory.getLogger(CartController.class); private static final Logger log = LoggerFactory.getLogger(CartController.class);
static final String DEFUALT_PAGE_SIZE = NlibProperty.getProperty("list.paging.page.size");
@Value("#{properties['list.paging.page.size']}")
private String DEFUALT_PAGE_SIZE;
@Resource(name = "cartService") @Resource(name = "cartService")
private CartService cartService; private CartService cartService;

View File

@ -110,7 +110,7 @@ public class DataApiTempXml implements DataApiInterface {
log.debug("RES resVO : resultMessage = " + resVO.getResultMessage()); log.debug("RES resVO : resultMessage = " + resVO.getResultMessage());
} catch(Exception e) { } catch(Exception e) {
e.printStackTrace(); log.error("ERROR at DataApiTempXml.request : " + e.toString());
return DataApiInterface.makeErrorRes("E_REQ_EXCEPTION", e.toString()); return DataApiInterface.makeErrorRes("E_REQ_EXCEPTION", e.toString());
} }

View File

@ -410,7 +410,7 @@ public class NlibSearchController extends NlibCommonController {
} }
} }
} catch (IOException e) { } catch (IOException e) {
log.error("shorturl-data.do 단축url > Exception 발생 : " + e.toString()); log.error("shorturl-data.do 단축url > IOException 발생 : " + e.toString());
} }
finally finally
{ {
@ -420,7 +420,7 @@ public class NlibSearchController extends NlibCommonController {
} }
catch (IOException e) catch (IOException e)
{ {
log.error("shorturl-data.do 단축url > Exception 발생 : " + e.toString()); log.error("shorturl-data.do 단축url > IOException 발생 : " + e.toString());
} }
} }
return returnUrl; return returnUrl;