This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| 1.导入相应的jar包 | |
| 2.在applicationContext.xml文件中配置相应的bean | |
| 3.配置mybatis的配置文件 | |
| */ | |
| 这段主要是applicationContext.xml的配置 | |
| <!-- datasource --> | |
| <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" | |
| destroy-method="close"> | |
| <property name="driverClassName" value="${driverClassName}" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ******************************************* | |
| // LICENSE INFORMATION | |
| // The code, "Detecting Smartphones Using PHP" | |
| // by Anthony Hand, is licensed under a Creative Commons | |
| // Attribution 3.0 United States License. | |
| // | |
| // Updated 01 March 2010 by Bryan J Swift | |
| // - Remove un-needed if statements instead just returning the boolean | |
| // inside the if clause | |
| // |