mybatis搭载了logback日志系统。mybatis有几个文件夹分别是dao,mapper,domain。想要看sql需要查看dao。 需要通过配置logback就可以实现sql的打印。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>| public function loadMapBuilding() | |
| { | |
| $this->resetParams(); | |
| $resblockIds = $this->requestParams['resblockIds']; | |
| $resArr = explode(",",$resblockIds); | |
| $test = new GetResblockDetail($this->_searchServiceProvider, $this->_openApiServiceProvider, $this->requestParams); |
mybatis搭载了logback日志系统。mybatis有几个文件夹分别是dao,mapper,domain。想要看sql需要查看dao。 需要通过配置logback就可以实现sql的打印。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>#工厂类
把实现接口的类扔进代理中,代理去增加扩展功能,这样就实现了切面编程。好处是没有继承,也就是说没有依赖关系,降低了耦合度,从而达到解耦的目的
public class MyBeanFactory{
public static IUserService createUserService(){
final IUserService userService = new UserServiceImpl();
final MyAspect aspect = new MyAspect;
IUserService proxyService = (IUserService)Proxy.newProxyInstance(| public enum FieldSourceEnum { | |
| CONTRACT(1, "备件/合同", new LinkedList<SourceType>() {{ | |
| { | |
| add(SourceType.CONTRACT); | |
| } | |
| }}), | |
| CONTRACT_AGENT(2, "备件/合同>经纪人", new LinkedList<SourceType>() {{ | |
| { | |
| add(SourceType.CONTRACT); |
| <?php | |
| /** | |
| * Copyright (c) 2010, 新浪网支付中心 | |
| * All rights reserved. | |
| * | |
| * 文件名称: class.PLog.php | |
| * 摘 要: 基础日志 | |
| * 作 者: [email protected] | |
| * 版 本: 1.0 | |
| * 修改日期: 2010.3.28(代码整理) |
| <?php | |
| /** | |
| * Copyright (c) 2010, 新浪网支付中心 | |
| * All rights reserved. | |
| * | |
| * 文件名称: class.PFile.php | |
| * 摘 要: 文件操作类 | |
| * 作 者: [email protected] | |
| * 版 本: 1.0 | |
| * 修改日期: 2010.3.28(代码整理) |