清理代码
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ import org.springside.examples.bootapi.domain.Account;
|
||||
import org.springside.examples.bootapi.repository.AccountDao;
|
||||
import org.springside.modules.utils.Digests;
|
||||
import org.springside.modules.utils.Encodes;
|
||||
import org.springside.modules.utils.Identities;
|
||||
import org.springside.modules.utils.Ids;
|
||||
|
||||
import com.google.common.cache.Cache;
|
||||
import com.google.common.cache.CacheBuilder;
|
||||
@@ -60,7 +60,7 @@ public class AccountService {
|
||||
throw new RestException("Password wrong", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
|
||||
String token = Identities.uuid2();
|
||||
String token = Ids.uuid2();
|
||||
loginUsers.put(token, account);
|
||||
counterService.increment("loginUser");
|
||||
return token;
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
#Sat Nov 07 10:12:13 CST 2015
|
||||
0=TestDB(Embedded)|org.h2.Driver|jdbc\:h2\:mem\:testdb|sa
|
||||
webAllowOthers=false
|
||||
webPort=8082
|
||||
webPort=8090
|
||||
webSSL=false
|
||||
|
||||
Reference in New Issue
Block a user