java 如何获取网页的动态内容,并解析网页内容
摘要:(笔记) 获取网页的动态内容参考 https://stackoverflow.com/questions/42446990/parse-html-table-to-json-using-jsoup-in-java
阅读全文
posted @
2017-08-07 23:16
码农时刻
阅读(3506)
推荐(0)
spring batch @EnableBatchProcessing作用
摘要:@EnableBatchProcessing:自动帮你补全一些重要的有关batch工作时的属性依赖如:
阅读全文
posted @
2017-06-13 16:59
码农时刻
阅读(2852)
推荐(0)
如何打一个可执行war包并使之可以部署在tomcat服务器上
摘要:https://www.mkyong.com/spring-boot/spring-boot-deploy-war-file-to-tomcat/ 1、首先你的pom文件中需要包含内嵌tomcat: 3、最后你的app要继承SpringBootServletInitializer如:
阅读全文
posted @
2017-05-16 23:04
码农时刻
阅读(691)
推荐(0)
记录几篇介绍mysql数据库分表策略的文章
摘要:https://my.oschina.net/ydsakyclguozi/blog/199498 https://aws.amazon.com/articles/0040302286264415
阅读全文
posted @
2017-04-25 11:44
码农时刻
阅读(95)
推荐(0)
sessionFactory.openSession()和sessionFactory.getCurrentSession的区别
摘要:sessionFactory.openSession重新创建一个session sessionFactory.getCurrentSession 获取当前上下文中的session。 session在Hibernate中是非线程安全的轻量级的对象,在使用过程中要随用随释放。不像transationMa
阅读全文
posted @
2017-04-18 00:36
码农时刻
阅读(352)
推荐(0)
spring batch TaskletStep 和chunk的区别
摘要:Spring Batch Framework offers two processing styles. TaskletStep Oriented Chunk Oriented TaskletStep is used when either only reading or writing the d
阅读全文
posted @
2017-03-12 16:39
码农时刻
阅读(1147)
推荐(0)
spring batch schedule(任务调度)值cron 表达式
摘要:首先要知道cron是什么,我也不知道cron是什么😄 维基百科上有关于cron的描述https://zh.wikipedia.org/wiki/Cron cron是crontab的缩写,crontab是常见于unix和类unix的操作系统中用于设置周期性的执行指令。 cron指令的作用是从标准设备
阅读全文
posted @
2017-02-28 23:45
码农时刻
阅读(1292)
推荐(0)
spring batch(批处理)
摘要:一篇spring批处理的教程 https://www.petrikainulainen.net/programming/spring-framework/spring-batch-tutorial-introduction/ 1、关于批处理: 批处理是一件完整的工作 其特点包括,正确的输出,容错,快
阅读全文
posted @
2017-02-16 10:37
码农时刻
阅读(1397)
推荐(0)
ArrayList iterator每次取到next的值一样
摘要:出错写法:while(list.iterator.hasNext()){ object item = iterator.next();} 原因:每次调用iterator的时候ArrayList返回的总是一个new ListItr,这样每次拿到的结果都是第一个对象public ListIterator
阅读全文
posted @
2017-02-16 10:15
码农时刻
阅读(270)
推荐(0)
推荐两个学习java开发的教程
摘要:https://www.petrikainulainen.net/ https://www.mkyong.com/
阅读全文
posted @
2017-02-15 11:45
码农时刻
阅读(129)
推荐(0)
No value for key SessionFactoryImpl
摘要:No value for key [org.hibernate.internal.SessionFactoryImpl@549efabc] bound to thread [http-nio-8080-exec-1] 造成这个问题直接原因是由于 SessionFactoryImpl 没有curren
阅读全文
posted @
2017-02-10 10:41
码农时刻
阅读(1278)
推荐(0)
spring 拦截失败
摘要:不成功原因可能有:拦截器对应的bean所依赖的bean还没初始化在调用的bean后面,需要修改xml调整拦截器对应的bean的执行顺序
阅读全文
posted @
2017-01-19 09:41
码农时刻
阅读(187)
推荐(0)
spring EL 实现ref的效果
摘要:之前学习basic的时候有个疑问就是不知道如何实现bean中引用其他的bean的属性,当时是用ref来实现对其他bean的引用,但是ref必需引用的是一个常量。所以这种方式来实现对其他bean中的属性的引用是不合理的。 当我看到Spring Expression Language时发现原来我想实现的
阅读全文
posted @
2017-01-17 16:07
码农时刻
阅读(207)
推荐(0)
spring 设置注解依赖 @Required
摘要:@Required 是我们对必需要的东西进行注解,spring在运行时的时候会帮助我们检查依赖项是否存在。 其实现分两部: 1、在你的bean读经的model里面的相关属性加上@Required这个注解 2、在你的xml文件中做一些配置: a、引入 xmlns:context="http://www
阅读全文
posted @
2017-01-17 11:57
码农时刻
阅读(347)
推荐(0)
使用CustomEditorConfigurer时报错。
摘要:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.spring
阅读全文
posted @
2017-01-17 00:33
码农时刻
阅读(1008)
推荐(0)
如何解决maven创建项目时十分缓慢的问题
摘要:解决方法来自百度前几篇介绍。😔 第一篇来自:http://blog.csdn.net/codercaicai/article/details/51917522 第二篇来自:http://www.cnblogs.com/chenpi/p/5986215.html#undefined 然后说一下为什么
阅读全文
posted @
2017-01-12 23:41
码农时刻
阅读(1442)
推荐(0)
在intellij 下用java spring + Mysql + Hibernate 开发的第一个数据库demo
摘要:准备: 1、安装mysql. 2、安装maven. 3、准备好你的ide(eclipse,或intellij都行) 正题: 用spring的框架来构建项目,首先就是要知道AOP和DI是什么。(自己查) 实现过程中有两类疑问? 1、第一个是spring怎么实现我们没有new Bean然而能够拿到一些b
阅读全文
posted @
2017-01-12 00:09
码农时刻
阅读(872)
推荐(0)
spring-boot 热部署 intellij IDE(开发过程)
摘要:1、使用springloadded插件: 如何使用: a、先在ide里面部署好你的service,( mvn spring-boot:run) b、修改代码, c、command+F9(或build->make) 只要你make完后springloadded插件就能帮你重新部署好。当然你也可以通过设
阅读全文
posted @
2016-05-31 00:41
码农时刻
阅读(5605)
推荐(1)
java 实现 LINQ 的一些框架记录一下
摘要:jOOQ: http://www.jooq.org JINQ: http://www.jinq.org JaQue: http://github.com/TrigerSoft/jaque JaQu: http://www.h2database.com/html/jaqu.html Linq4j: h
阅读全文
posted @
2016-04-26 15:29
码农时刻
阅读(1005)
推荐(0)
jax-rs中的一些参数标注简介(@PathParam,@QueryParam,@MatrixParam,@HeaderParam,@FormParam,@CookieParam)
摘要:先复习一下url的组成: scheme:[//[user:password@]host[:port]][/]path[?query][#fragment] jax-rs anotation @PathParam : 在请求拼接在url中的uri中 如:http://localhost:8080/bo
阅读全文
posted @
2016-04-25 00:15
码农时刻
阅读(1285)
推荐(1)