(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
@Test | |
public void countExpiredUser() throws IllegalAccessException { | |
final Field mappedStatements = ReflectionUtils.findField(Configuration.class, "mappedStatements"); | |
mappedStatements.setAccessible(true); | |
final Map<String, MappedStatement> stringMappedStatementMap = | |
(Map<String, MappedStatement>)mappedStatements.get(config); | |
stringMappedStatementMap.forEach( | |
(k, v) -> { | |
if (StringUtils.isNotBlank(k) && k.startsWith(namespace)) { | |
final SqlSource sqlSource = v.getSqlSource(); |
<context:component-scan base-package="com.atour"> | |
<context:include-filter type="annotation" | |
expression="org.springframework.stereotype.Controller" /> | |
<context:exclude-filter type="annotation" | |
expression="org.springframework.stereotype.Service" /> | |
<context:exclude-filter type="annotation" | |
expression="org.springframework.stereotype.Repository" /> | |
</context:component-scan> |
Collection<?> additionalFilters = args == null | |
? Collections.emptyList() | |
: args.additionalFilters; |
<%@ page import="java.lang.management.BufferPoolMXBean" %> | |
<%@ page import="java.util.List" %> | |
<%@ page import="java.lang.management.ManagementFactory" %><%-- | |
Created by IntelliJ IDEA. | |
User: qishengli | |
Date: 18-6-6 | |
Time: 上午11:40 | |
To change this template use File | Settings | File Templates. | |
--%> | |
<% |
package com.qunar.mobile.dao.order.hotel.impl; | |
import com.google.common.collect.Maps; | |
import com.google.common.collect.Sets; | |
import org.apache.ibatis.builder.annotation.ProviderSqlSource; | |
import org.apache.ibatis.builder.xml.XMLConfigBuilder; | |
import org.apache.ibatis.io.Resources; | |
import org.apache.ibatis.mapping.BoundSql; | |
import org.apache.ibatis.mapping.MappedStatement; | |
import org.apache.ibatis.scripting.xmltags.DynamicSqlSource; |
<%@ page import="org.springframework.context.ApplicationContext" %> | |
<%@ page import="org.springframework.util.MultiValueMap" %> | |
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> | |
<%@ page import="org.springframework.web.method.HandlerMethod" %> | |
<%@ page import="org.springframework.web.servlet.handler.AbstractHandlerMethodMapping" %> | |
<%@ page import="org.springframework.web.servlet.mvc.method.RequestMappingInfo" %> | |
<%@ page import="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" %> | |
<%@ page import="java.lang.reflect.Field" %> | |
<%@ page import="java.util.List" %> | |
<%@ page import="java.util.Map" %> |
package com.air.nio; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.SelectionKey; | |
import java.nio.channels.Selector; | |
import java.nio.channels.ServerSocketChannel; | |
import java.nio.channels.SocketChannel; | |
import java.util.Iterator; |
/* | |
* Copyright 1999-2011 Alibaba Group. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 1999-2011 Alibaba Group. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.