- 浏览: 9448 次
- 性别:
- 来自: 深圳
最新评论
文章列表
通过加密判断越权
- 博客分类:
- java base64
package com.sf.sms.util.utils;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
/**
* <pre>
* Base64 加解密
* </pre>
* @author 730882
* @ve ...
List<String> newUsers = newTaskUsers.stream().map(it ->it.getUserWorkNumber()).collect(toList());
List<String> oldUsers = oldTaskUsers.stream().map(it ->it.getUserWorkNumber()).collect(toList());
if(oldUsers.containsAll(newUsers)){
flag = fals ...
select object_name, machine, s.sid, s.serial#
from v$locked_object l, dba_objects o, v$session s
where l.object_id = o.object_id
and l.session_id = s.sid;
select *
from v$locked_object l, dba_objects o, v$session s
where l.object_id = o.object_id
and l.session_id = s.sid;
with ta as
(select '723488' as emp_code,
to_date('2017/7/3 14:00', 'yyyy/mm/dd hh24:mi') as start_time,
to_date('2017/7/3 15:30', 'yyyy/mm/dd hh24:mi') as end_time
from dual
union all
select '723488' as emp_code,
to_date('2017/7/3 16:00', 'yyyy/mm/dd hh24:mi') as st ...
*/
public static String getConfigurationInfoByKey(String key) {
// 获取存在外部配置文件的文件路径
String strConfPath = System.getenv().get(Constant.CONF_PATH);
InputStream in = null;
// 用于存储配置信息的value
String strConfigurationInfoValue = "";
try {
in = new FileInputStream(new File(strConfPat ...
package com.sf.scms.core.aop;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
public class IPUtil {
public static String getIpAddress(HttpServletRequest request) {
try {
if (request == null) {
return "";
...
----------oracle 数据库迁移--- 环境切换-- 操作指引-----
"先用 用户名:sfapp 密码:sf123456 登陆
再切换到 用户名:root 密码:sf123456789
"
序号 操作 操作命令
0 切换到oracle用户 su - oracle
1 配置监听 "配置 ...
/**
* 去重前端传来的参数 userOthers-- 用户对象避免数据库对象主键重复
* @param userOthers
* @return List<MeetingAppOtherUserCommand>
* 2016-11-21
* List<MeetingAppOtherUserCommand>
*/
public static List<MeetingAppOtherUserCommand> tarnsMeetingAppOtherUserCommand(List<Me ...