#!/bin/sh
sync; echo 3 > /proc/sys/vm/drop_caches
crontab -e
0 4 * * * /root/clearcache.sh
#!/bin/sh
sync; echo 3 > /proc/sys/vm/drop_caches
crontab -e
0 4 * * * /root/clearcache.sh
100% — FF
99% — FC
98% — FA
97% — F7
96% — F5
95% — F2
94% — F0
93% — ED
92% — EB
91% — E8
90% — E6
89% — E3
88% — E0
87% — DE
86% — DB
85% — D9
84% — D6
83% — D4
82% — D1
81% — CF
80% — CC
79% — C9
78% — C7
77% — C4
76% — C2
75% — BF
74% — BD
73% — BA
72% — B8
71% — B5
70% — B3
69% — B0
68% — AD
67% — AB
66% — A8
65% — A6
64% — A3
63% — A1
62% — 9E
61% — 9C
60% — 99
59% — 96
58% — 94
57% — 91
56% — 8F
55% — 8C
54% — 8A
53% — 87
52% — 85
51% — 82
50% — 80
49% — 7D
48% — 7A
47% — 78
46% — 75
45% — 73
44% — 70
43% — 6E
42% — 6B
41% — 69
40% — 66
39% — 63
38% — 61
37% — 5E
36% — 5C
35% — 59
34% — 57
33% — 54
32% — 52
31% — 4F
30% — 4D
29% — 4A
28% — 47
27% — 45
26% — 42
25% — 40
24% — 3D
23% — 3B
22% — 38
21% — 36
20% — 33
19% — 30
18% — 2E
17% — 2B
16% — 29
15% — 26
14% — 24
13% — 21
12% — 1F
11% — 1C
10% — 1A
9% — 17
8% — 14
7% — 12
6% — 0F
5% — 0D
4% — 0A
3% — 08
2% — 05
1% — 03
0% — 00
01 | package com.softline.study.interceptor; |
02 |
03 | import org.springframework.core.MethodParameter; |
04 | import org.springframework.web.bind.support.WebDataBinderFactory; |
05 | import org.springframework.web.context.request.NativeWebRequest; |
06 | import org.springframework.web.method.support.HandlerMethodArgumentResolver; |
07 | import org.springframework.web.method.support.ModelAndViewContainer; |
08 |
09 | import com.softline.study.model.User; |
10 |
11 | public class UserHandlerMethodArgumentResolver implements HandlerMethodArgumentResolver{ |
12 |
13 | public boolean supportsParameter(MethodParameter parameter) { |
14 | return User. class .isAssignableFrom(parameter.getParameterType()); |
15 | } |
16 |
17 | public Object resolveArgument(MethodParameter parameter, |
18 | ModelAndViewContainer mavContainer, NativeWebRequest webRequest, |
19 | WebDataBinderFactory binderFactory) throws Exception { |
20 | User user = new User(); |
21 | user.setName( "테스트" ); |
22 | return user; |
23 | } |
24 | } |
01 | package com.softline.study.controller; |
02 |
03 | import org.springframework.stereotype.Controller; |
04 | import org.springframework.web.bind.annotation.RequestMapping; |
05 | import org.springframework.web.bind.annotation.ResponseBody; |
06 |
07 | import com.softline.study.model.User; |
08 |
09 | @Controller |
10 | @RequestMapping ( "arg" ) |
11 | public class ArgumentResolverInterceptorTestController { |
12 |
13 | @RequestMapping ( "resolver" ) |
14 | @ResponseBody |
15 | public String argumentResolver(User user) { |
16 | return user.getName(); |
17 | } |
18 |
19 | } |
01 | <!--?xml version="1.0" encoding="UTF-8"?--> |
02 | < beans xmlns = "http://www.springframework.org/schema/beans" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc = "http://www.springframework.org/schema/mvc" xmlns:context = "http://www.springframework.org/schema/context" xsi:schemalocation=" |
03 | http://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd |
04 | http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.2.xsd |
05 | http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.2.xsd |
06 | "> |
07 |
08 | <!-- mvc 관련 annotation --> |
09 | < mvc:annotation-driven > |
10 | < mvc:argument-resolvers > |
11 | < bean class = "com.softline.study.interceptor.UserHandlerMethodArgumentResolver" ></ bean > |
12 | </ mvc:argument-resolvers > |
13 | </ mvc:annotation-driven > |
14 |
15 | <!-- default servlet mapping이 필요한 경우 사용 http://toby.epril.com/?p=1107 --> |
16 | <!-- <mvc:default-servlet-handler /> --> |
17 |
18 | <!-- component scan 패키지 등록 stereotype 타입 scan --> |
19 | < context:component-scan base-package = "com.softline.study" > |
20 |
21 | |
22 | </ context:component-scan ></ beans > |
개발자