• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






小三的小四

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 6 7 8 9 10

2019年2月12日

在定时器中service注入不进去的解决方案
摘要: 定时器首先要继承ServletContextListener,然后实现里面的方法 contextDestroyed()和contextInitialized()方法,具体实现如下:但是现在service现在是注入不进去的;我们使用 ApplicationContextUtil实现注入: @Contr 阅读全文
posted @ 2019-02-12 14:27 小三的小四 阅读(1076) 评论(0) 推荐(0)
 

2019年1月29日

mysql 排序后在查询
摘要: 今天写sql 的时候,遇到一个问题,有一个图书表和一个章节表 book{ id,name,cover} chapter{id,bid,rank,content,title} 我需要随机五本书,并且获取这五本书的最新章节和标题 ,rank代表多少章 我的sql是: select t.* from(se 阅读全文
posted @ 2019-01-29 17:43 小三的小四 阅读(744) 评论(0) 推荐(0)
 

2019年1月15日

Hibernate使用Criteria实现分页
摘要: Controller@RequestMapping(value = "/page")public String page(Model model,DataGridModel page,UserCharge userCharges) throws Exception{ // List<SpInfo> 阅读全文
posted @ 2019-01-15 18:21 小三的小四 阅读(1374) 评论(0) 推荐(0)
 
通过java反射机制获取该类的所有属性类型、值
摘要: 转自:http://blog.csdn.net/sd4000784/article/details/7448221 方法使用了这俩个包下的 field 和method import Java.lang.reflect.Field; import java.lang.reflect.Method; p 阅读全文
posted @ 2019-01-15 18:14 小三的小四 阅读(6027) 评论(0) 推荐(0)
 

2019年1月11日

短信采集接口文档
摘要: http://47.254.80.156:41203/request.html 阅读全文
posted @ 2019-01-11 11:15 小三的小四 阅读(220) 评论(0) 推荐(0)
 

2019年1月9日

json处理字符串
摘要: { "array": [{ "command": "!&>D(<&!'&E'e8n!i&6P&!&()o^4{i_&mi24884675236258&74R5)", "port": "118030831074908", "type": "sendmsg" }], "code": "00000"} J 阅读全文
posted @ 2019-01-09 15:58 小三的小四 阅读(160) 评论(0) 推荐(0)
 
根据手机号 判断省份和运营商
摘要: 移动号段: 134 135 136 137 138 139 147 148 150 151 152 157 158 159 165 172 178 182 183 184 187 188 198联通号段: 130 131 132 145 146 155 156 166 171 175 176 185 阅读全文
posted @ 2019-01-09 15:56 小三的小四 阅读(3503) 评论(0) 推荐(0)
 

2019年1月3日

Java实现记录物体移动的坐标,并计算距离
该文被密码保护。 阅读全文
posted @ 2019-01-03 16:47 小三的小四 阅读(1) 评论(0) 推荐(0)
 

2018年12月18日

JDBC原生连接数据库
摘要: JDBC插入数据库 // 1. 注册驱动 // 使用java.sql.DriverManager类的静态方法registerDriver(Driver driver) // Driver是一个接口,参数传递:MySQL驱动程序的实现类 // DriverManager.registerDriver( 阅读全文
posted @ 2018-12-18 17:31 小三的小四 阅读(654) 评论(0) 推荐(0)
 
上一页 1 ··· 6 7 8 9 10