log insert시 ip 주소 데이터 변경
ip 주소 데이터 변경
@be4ff425d7d3e787e92598eea4bc14c871399c59
--- src/main/java/itn/let/sym/log/clg/service/EgovLoginLogAspect.java
+++ src/main/java/itn/let/sym/log/clg/service/EgovLoginLogAspect.java
... | ... | @@ -3,6 +3,8 @@ |
| 3 | 3 |
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; |
| 4 | 4 |
import itn.com.cmm.LoginVO; |
| 5 | 5 |
|
| 6 |
+import java.net.InetAddress; |
|
| 7 |
+ |
|
| 6 | 8 |
import javax.annotation.Resource; |
| 7 | 9 |
|
| 8 | 10 |
/** |
... | ... | @@ -47,7 +49,9 @@ |
| 47 | 49 |
LoginVO user = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser(); |
| 48 | 50 |
uniqId = user.getUniqId(); |
| 49 | 51 |
//uniqId = user.getId(); |
| 50 |
- ip = user.getIp(); |
|
| 52 |
+// ip = user.getIp(); |
|
| 53 |
+ InetAddress ipAddress = InetAddress.getLocalHost(); |
|
| 54 |
+ ip = ipAddress.toString(); |
|
| 51 | 55 |
} |
| 52 | 56 |
|
| 53 | 57 |
LoginLog loginLog = new LoginLog(); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?