├── .gitattributes ├── .gitignore ├── README.md ├── dubbo-demo ├── .project ├── .settings │ └── org.eclipse.m2e.core.prefs ├── dubbo-demo-api │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── dubbo │ │ │ └── demo │ │ │ └── api │ │ │ └── service │ │ │ └── IUserService.java │ │ └── test │ │ └── java │ │ └── org │ │ └── dubbo │ │ └── demo │ │ └── api │ │ └── AppTest.java ├── dubbo-demo-common │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── dubbo │ │ │ └── demo │ │ │ └── common │ │ │ ├── base │ │ │ ├── BaseController.java │ │ │ └── BaseService.java │ │ │ ├── log │ │ │ └── Logger.java │ │ │ └── model │ │ │ └── User.java │ │ └── test │ │ └── java │ │ └── org │ │ └── dubbo │ │ └── demo │ │ └── common │ │ └── AppTest.java ├── dubbo-demo-service │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ └── org.eclipse.m2e.core.prefs │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── dubbo │ │ │ │ │ └── demo │ │ │ │ │ ├── StartDubboService.java │ │ │ │ │ ├── dao │ │ │ │ │ └── IUserDao.java │ │ │ │ │ ├── service │ │ │ │ │ └── user │ │ │ │ │ │ └── impl │ │ │ │ │ │ └── UserServiceImpl.java │ │ │ │ │ └── util │ │ │ │ │ └── ProjectConfigUtil.java │ │ │ └── resources │ │ │ │ ├── config.properties │ │ │ │ ├── demo.sql │ │ │ │ ├── log4j.properties │ │ │ │ ├── mybatis │ │ │ │ ├── mybatis-config.xml │ │ │ │ └── user │ │ │ │ │ └── user.xml │ │ │ │ └── spring │ │ │ │ ├── dao.xml │ │ │ │ ├── dubbo.xml │ │ │ │ ├── spring.xml │ │ │ │ └── transaction.xml │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── dubbo │ │ │ └── demo │ │ │ └── service │ │ │ └── AppTest.java │ └── target │ │ └── classes │ │ ├── config.properties │ │ ├── demo.sql │ │ ├── log4j.properties │ │ ├── mybatis │ │ ├── mybatis-config.xml │ │ └── user │ │ │ └── user.xml │ │ └── spring │ │ ├── dao.xml │ │ ├── dubbo.xml │ │ ├── spring.xml │ │ └── transaction.xml ├── dubbo-demo-web │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── dubbo │ │ │ │ └── demo │ │ │ │ ├── controller │ │ │ │ └── user │ │ │ │ │ └── UserController.java │ │ │ │ └── listener │ │ │ │ └── InitialListener.java │ │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ └── spring │ │ │ │ ├── dubbo.xml │ │ │ │ ├── spring-mvc.xml │ │ │ │ └── spring.xml │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ └── target │ │ ├── classes │ │ ├── log4j.properties │ │ └── spring │ │ │ ├── dubbo.xml │ │ │ ├── spring-mvc.xml │ │ │ └── spring.xml │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── cn.hdu.edu │ │ └── dubbo-demo-web │ │ ├── pom.properties │ │ └── pom.xml ├── logs │ ├── dubbo-demo-web.log │ ├── dubbo-demo.log │ └── webbf.log ├── pom.xml ├── readme.md ├── service-pom.xml └── web-pom.xml ├── mbgdemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── cn │ │ │ │ └── edu │ │ │ │ └── hdu │ │ │ │ └── mbgdemo │ │ │ │ ├── App.java │ │ │ │ ├── base │ │ │ │ ├── BaseDao.java │ │ │ │ └── BaseModel.java │ │ │ │ ├── dao │ │ │ │ └── generator │ │ │ │ │ └── DemoUserMapper.java │ │ │ │ └── model │ │ │ │ └── generator │ │ │ │ └── DemoUser.java │ │ └── resources │ │ │ ├── generatorConfig-demo.xml │ │ │ └── mappers │ │ │ └── generator │ │ │ └── DemoUserMapper.xml │ └── test │ │ └── java │ │ └── cn │ │ └── edu │ │ └── hdu │ │ └── mbgdemo │ │ └── AppTest.java └── target │ ├── classes │ ├── cn │ │ └── edu │ │ │ └── hdu │ │ │ └── mbgdemo │ │ │ ├── App.class │ │ │ ├── App.java │ │ │ ├── base │ │ │ ├── BaseDao.class │ │ │ ├── BaseDao.java │ │ │ ├── BaseModel.class │ │ │ └── BaseModel.java │ │ │ ├── dao │ │ │ └── generator │ │ │ │ ├── DemoUserMapper.class │ │ │ │ └── DemoUserMapper.java │ │ │ └── model │ │ │ └── generator │ │ │ ├── DemoUser.class │ │ │ └── DemoUser.java │ ├── generatorConfig-demo.xml │ └── mappers │ │ └── generator │ │ └── DemoUserMapper.xml │ └── test-classes │ └── cn │ └── edu │ └── hdu │ └── mbgdemo │ └── AppTest.class ├── multi-module ├── .project ├── .settings │ └── org.eclipse.m2e.core.prefs ├── logs │ └── web.log ├── multi-module-common │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── multi │ │ │ └── module │ │ │ └── common │ │ │ ├── log │ │ │ └── Logger.java │ │ │ └── model │ │ │ └── User.java │ │ └── test │ │ └── java │ │ └── org │ │ └── multi │ │ └── module │ │ └── common │ │ └── AppTest.java ├── multi-module-dao │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ ├── resources │ │ └── mybatis │ │ │ ├── mybatis-config.xml │ │ │ └── user │ │ │ └── user.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── multi │ │ │ └── module │ │ │ └── dao │ │ │ ├── IDAOSupport.java │ │ │ └── impl │ │ │ └── DaoSupportImpl.java │ │ └── test │ │ └── java │ │ └── org │ │ └── multi │ │ └── module │ │ └── dao │ │ └── AppTest.java ├── multi-module-service │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── multi │ │ │ └── module │ │ │ └── service │ │ │ ├── IUserService.java │ │ │ ├── base │ │ │ └── BaseService.java │ │ │ └── impl │ │ │ └── UserServiceImpl.java │ │ └── test │ │ └── java │ │ └── org │ │ └── multi │ │ └── module │ │ └── service │ │ └── AppTest.java ├── multi-module-web │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── multi │ │ │ │ └── module │ │ │ │ ├── controller │ │ │ │ ├── BaseController.java │ │ │ │ └── UserController.java │ │ │ │ └── core │ │ │ │ ├── listener │ │ │ │ └── InitialListener.java │ │ │ │ └── servlet │ │ │ │ ├── RelativeUrl.java │ │ │ │ └── UrlServlet.java │ │ │ ├── resources │ │ │ ├── config.properties │ │ │ ├── demo.sql │ │ │ ├── log4j.properties │ │ │ └── spring │ │ │ │ ├── spring-mvc.xml │ │ │ │ └── spring.xml │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ └── target │ │ ├── classes │ │ ├── config.properties │ │ ├── demo.sql │ │ ├── log4j.properties │ │ └── spring │ │ │ ├── spring-mvc.xml │ │ │ └── spring.xml │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── cn.edu.hdu.mm │ │ └── multi-module-web │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml └── readme.md ├── solr-in-tomcat ├── lib.png ├── log4j.properties ├── readme.md ├── solr-dataimportscheduler-1.1.1.jar ├── solrhome │ ├── README.txt │ ├── conf │ │ └── dataimport.properties │ ├── configsets │ │ ├── basic_configs │ │ │ └── conf │ │ │ │ ├── _rest_managed.json │ │ │ │ ├── currency.xml │ │ │ │ ├── lang │ │ │ │ └── stopwords_en.txt │ │ │ │ ├── managed-schema │ │ │ │ ├── protwords.txt │ │ │ │ ├── solrconfig.xml │ │ │ │ ├── stopwords.txt │ │ │ │ └── synonyms.txt │ │ ├── data_driven_schema_configs │ │ │ └── conf │ │ │ │ ├── currency.xml │ │ │ │ ├── elevate.xml │ │ │ │ ├── lang │ │ │ │ ├── contractions_ca.txt │ │ │ │ ├── contractions_fr.txt │ │ │ │ ├── contractions_ga.txt │ │ │ │ ├── contractions_it.txt │ │ │ │ ├── hyphenations_ga.txt │ │ │ │ ├── stemdict_nl.txt │ │ │ │ ├── stoptags_ja.txt │ │ │ │ ├── stopwords_ar.txt │ │ │ │ ├── stopwords_bg.txt │ │ │ │ ├── stopwords_ca.txt │ │ │ │ ├── stopwords_cz.txt │ │ │ │ ├── stopwords_da.txt │ │ │ │ ├── stopwords_de.txt │ │ │ │ ├── stopwords_el.txt │ │ │ │ ├── stopwords_en.txt │ │ │ │ ├── stopwords_es.txt │ │ │ │ ├── stopwords_eu.txt │ │ │ │ ├── stopwords_fa.txt │ │ │ │ ├── stopwords_fi.txt │ │ │ │ ├── stopwords_fr.txt │ │ │ │ ├── stopwords_ga.txt │ │ │ │ ├── stopwords_gl.txt │ │ │ │ ├── stopwords_hi.txt │ │ │ │ ├── stopwords_hu.txt │ │ │ │ ├── stopwords_hy.txt │ │ │ │ ├── stopwords_id.txt │ │ │ │ ├── stopwords_it.txt │ │ │ │ ├── stopwords_ja.txt │ │ │ │ ├── stopwords_lv.txt │ │ │ │ ├── stopwords_nl.txt │ │ │ │ ├── stopwords_no.txt │ │ │ │ ├── stopwords_pt.txt │ │ │ │ ├── stopwords_ro.txt │ │ │ │ ├── stopwords_ru.txt │ │ │ │ ├── stopwords_sv.txt │ │ │ │ ├── stopwords_th.txt │ │ │ │ ├── stopwords_tr.txt │ │ │ │ └── userdict_ja.txt │ │ │ │ ├── managed-schema │ │ │ │ ├── params.json │ │ │ │ ├── protwords.txt │ │ │ │ ├── solrconfig.xml │ │ │ │ ├── stopwords.txt │ │ │ │ └── synonyms.txt │ │ └── sample_techproducts_configs │ │ │ └── conf │ │ │ ├── _rest_managed.json │ │ │ ├── _schema_analysis_stopwords_english.json │ │ │ ├── _schema_analysis_synonyms_english.json │ │ │ ├── admin-extra.html │ │ │ ├── admin-extra.menu-bottom.html │ │ │ ├── admin-extra.menu-top.html │ │ │ ├── clustering │ │ │ └── carrot2 │ │ │ │ ├── README.txt │ │ │ │ ├── kmeans-attributes.xml │ │ │ │ ├── lingo-attributes.xml │ │ │ │ └── stc-attributes.xml │ │ │ ├── currency.xml │ │ │ ├── elevate.xml │ │ │ ├── lang │ │ │ ├── contractions_ca.txt │ │ │ ├── contractions_fr.txt │ │ │ ├── contractions_ga.txt │ │ │ ├── contractions_it.txt │ │ │ ├── hyphenations_ga.txt │ │ │ ├── stemdict_nl.txt │ │ │ ├── stoptags_ja.txt │ │ │ ├── stopwords_ar.txt │ │ │ ├── stopwords_bg.txt │ │ │ ├── stopwords_ca.txt │ │ │ ├── stopwords_ckb.txt │ │ │ ├── stopwords_cz.txt │ │ │ ├── stopwords_da.txt │ │ │ ├── stopwords_de.txt │ │ │ ├── stopwords_el.txt │ │ │ ├── stopwords_en.txt │ │ │ ├── stopwords_es.txt │ │ │ ├── stopwords_eu.txt │ │ │ ├── stopwords_fa.txt │ │ │ ├── stopwords_fi.txt │ │ │ ├── stopwords_fr.txt │ │ │ ├── stopwords_ga.txt │ │ │ ├── stopwords_gl.txt │ │ │ ├── stopwords_hi.txt │ │ │ ├── stopwords_hu.txt │ │ │ ├── stopwords_hy.txt │ │ │ ├── stopwords_id.txt │ │ │ ├── stopwords_it.txt │ │ │ ├── stopwords_ja.txt │ │ │ ├── stopwords_lv.txt │ │ │ ├── stopwords_nl.txt │ │ │ ├── stopwords_no.txt │ │ │ ├── stopwords_pt.txt │ │ │ ├── stopwords_ro.txt │ │ │ ├── stopwords_ru.txt │ │ │ ├── stopwords_sv.txt │ │ │ ├── stopwords_th.txt │ │ │ ├── stopwords_tr.txt │ │ │ └── userdict_ja.txt │ │ │ ├── managed-schema │ │ │ ├── mapping-FoldToASCII.txt │ │ │ ├── mapping-ISOLatin1Accent.txt │ │ │ ├── protwords.txt │ │ │ ├── solrconfig.xml │ │ │ ├── spellings.txt │ │ │ ├── stopwords.txt │ │ │ ├── synonyms.txt │ │ │ ├── update-script.js │ │ │ ├── velocity │ │ │ ├── README.txt │ │ │ ├── VM_global_library.vm │ │ │ ├── browse.vm │ │ │ ├── cluster.vm │ │ │ ├── cluster_results.vm │ │ │ ├── debug.vm │ │ │ ├── did_you_mean.vm │ │ │ ├── error.vm │ │ │ ├── facet_fields.vm │ │ │ ├── facet_pivot.vm │ │ │ ├── facet_queries.vm │ │ │ ├── facet_ranges.vm │ │ │ ├── facets.vm │ │ │ ├── footer.vm │ │ │ ├── head.vm │ │ │ ├── header.vm │ │ │ ├── hit.vm │ │ │ ├── hit_grouped.vm │ │ │ ├── hit_plain.vm │ │ │ ├── join_doc.vm │ │ │ ├── jquery.autocomplete.css │ │ │ ├── jquery.autocomplete.js │ │ │ ├── layout.vm │ │ │ ├── main.css │ │ │ ├── mime_type_lists.vm │ │ │ ├── pagination_bottom.vm │ │ │ ├── pagination_top.vm │ │ │ ├── product_doc.vm │ │ │ ├── query.vm │ │ │ ├── query_form.vm │ │ │ ├── query_group.vm │ │ │ ├── query_spatial.vm │ │ │ ├── results_list.vm │ │ │ ├── richtext_doc.vm │ │ │ ├── suggest.vm │ │ │ └── tabs.vm │ │ │ └── xslt │ │ │ ├── example.xsl │ │ │ ├── example_atom.xsl │ │ │ ├── example_rss.xsl │ │ │ ├── luke.xsl │ │ │ └── updateXml.xsl │ ├── demo │ │ ├── conf │ │ │ ├── currency.xml │ │ │ ├── elevate.xml │ │ │ ├── lang │ │ │ │ ├── contractions_ca.txt │ │ │ │ ├── contractions_fr.txt │ │ │ │ ├── contractions_ga.txt │ │ │ │ ├── contractions_it.txt │ │ │ │ ├── hyphenations_ga.txt │ │ │ │ ├── stemdict_nl.txt │ │ │ │ ├── stoptags_ja.txt │ │ │ │ ├── stopwords_ar.txt │ │ │ │ ├── stopwords_bg.txt │ │ │ │ ├── stopwords_ca.txt │ │ │ │ ├── stopwords_cz.txt │ │ │ │ ├── stopwords_da.txt │ │ │ │ ├── stopwords_de.txt │ │ │ │ ├── stopwords_el.txt │ │ │ │ ├── stopwords_en.txt │ │ │ │ ├── stopwords_es.txt │ │ │ │ ├── stopwords_eu.txt │ │ │ │ ├── stopwords_fa.txt │ │ │ │ ├── stopwords_fi.txt │ │ │ │ ├── stopwords_fr.txt │ │ │ │ ├── stopwords_ga.txt │ │ │ │ ├── stopwords_gl.txt │ │ │ │ ├── stopwords_hi.txt │ │ │ │ ├── stopwords_hu.txt │ │ │ │ ├── stopwords_hy.txt │ │ │ │ ├── stopwords_id.txt │ │ │ │ ├── stopwords_it.txt │ │ │ │ ├── stopwords_ja.txt │ │ │ │ ├── stopwords_lv.txt │ │ │ │ ├── stopwords_nl.txt │ │ │ │ ├── stopwords_no.txt │ │ │ │ ├── stopwords_pt.txt │ │ │ │ ├── stopwords_ro.txt │ │ │ │ ├── stopwords_ru.txt │ │ │ │ ├── stopwords_sv.txt │ │ │ │ ├── stopwords_th.txt │ │ │ │ ├── stopwords_tr.txt │ │ │ │ └── userdict_ja.txt │ │ │ ├── managed-schema │ │ │ ├── params.json │ │ │ ├── protwords.txt │ │ │ ├── solrconfig.xml │ │ │ ├── stopwords.txt │ │ │ └── synonyms.txt │ │ ├── core.properties │ │ └── data │ │ │ └── index │ │ │ ├── segments_1 │ │ │ └── write.lock │ ├── epdc │ │ ├── conf │ │ │ ├── admin-extra.html │ │ │ ├── admin-extra.menu-bottom.html │ │ │ ├── admin-extra.menu-top.html │ │ │ ├── currency.xml │ │ │ ├── data-config.xml │ │ │ ├── dataimport.properties │ │ │ ├── elevate.xml │ │ │ ├── lang │ │ │ │ ├── contractions_ca.txt │ │ │ │ ├── contractions_fr.txt │ │ │ │ ├── contractions_ga.txt │ │ │ │ ├── contractions_it.txt │ │ │ │ ├── hyphenations_ga.txt │ │ │ │ ├── stemdict_nl.txt │ │ │ │ ├── stoptags_ja.txt │ │ │ │ ├── stopwords_ar.txt │ │ │ │ ├── stopwords_bg.txt │ │ │ │ ├── stopwords_ca.txt │ │ │ │ ├── stopwords_cz.txt │ │ │ │ ├── stopwords_da.txt │ │ │ │ ├── stopwords_de.txt │ │ │ │ ├── stopwords_el.txt │ │ │ │ ├── stopwords_en.txt │ │ │ │ ├── stopwords_es.txt │ │ │ │ ├── stopwords_eu.txt │ │ │ │ ├── stopwords_fa.txt │ │ │ │ ├── stopwords_fi.txt │ │ │ │ ├── stopwords_fr.txt │ │ │ │ ├── stopwords_ga.txt │ │ │ │ ├── stopwords_gl.txt │ │ │ │ ├── stopwords_hi.txt │ │ │ │ ├── stopwords_hu.txt │ │ │ │ ├── stopwords_hy.txt │ │ │ │ ├── stopwords_id.txt │ │ │ │ ├── stopwords_it.txt │ │ │ │ ├── stopwords_ja.txt │ │ │ │ ├── stopwords_lv.txt │ │ │ │ ├── stopwords_nl.txt │ │ │ │ ├── stopwords_no.txt │ │ │ │ ├── stopwords_pt.txt │ │ │ │ ├── stopwords_ro.txt │ │ │ │ ├── stopwords_ru.txt │ │ │ │ ├── stopwords_sv.txt │ │ │ │ ├── stopwords_th.txt │ │ │ │ ├── stopwords_tr.txt │ │ │ │ └── userdict_ja.txt │ │ │ ├── managed-schema │ │ │ ├── params.json │ │ │ ├── protwords.txt │ │ │ ├── solrconfig.xml │ │ │ ├── stopwords.txt │ │ │ └── synonyms.txt │ │ ├── core.properties │ │ └── data │ │ │ ├── index │ │ │ ├── _1e.fdt │ │ │ ├── _1e.fdx │ │ │ ├── _1e.fnm │ │ │ ├── _1e.nvd │ │ │ ├── _1e.nvm │ │ │ ├── _1e.si │ │ │ ├── _1e_Lucene50_0.doc │ │ │ ├── _1e_Lucene50_0.pos │ │ │ ├── _1e_Lucene50_0.tim │ │ │ ├── _1e_Lucene50_0.tip │ │ │ ├── segments_1g │ │ │ └── write.lock │ │ │ └── tlog │ │ │ ├── tlog.0000000000000000041 │ │ │ ├── tlog.0000000000000000042 │ │ │ ├── tlog.0000000000000000043 │ │ │ ├── tlog.0000000000000000044 │ │ │ ├── tlog.0000000000000000045 │ │ │ ├── tlog.0000000000000000046 │ │ │ ├── tlog.0000000000000000047 │ │ │ ├── tlog.0000000000000000048 │ │ │ ├── tlog.0000000000000000049 │ │ │ └── tlog.0000000000000000050 │ ├── solr.xml │ └── zoo.cfg └── web.xml └── wsdemo ├── .classpath ├── .gitignore ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.m2e.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.prefs.xml ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.wst.jsdt.ui.superType.name └── org.eclipse.wst.validation.prefs ├── logs ├── wsdemo.log └── wsdemo.log-2016-11-28 ├── pom.xml └── src └── main ├── java └── cn │ └── edu │ └── hdu │ └── wsdemo │ ├── common │ ├── base │ │ ├── BaseController.java │ │ └── BaseService.java │ └── log │ │ └── Logger.java │ ├── controller │ └── user │ │ └── UserController.java │ ├── core │ ├── exception │ │ └── SysExceptionHandler.java │ └── listener │ │ └── InitialListener.java │ ├── dao │ └── IUserDao.java │ ├── model │ └── User.java │ ├── service │ └── user │ │ ├── IUserService.java │ │ └── impl │ │ └── UserServiceImpl.java │ ├── util │ └── ProjectConfigUtil.java │ └── wsservice │ └── UserWSService.java ├── resources ├── config.properties ├── log4j.properties ├── mybatis │ ├── mybatis-config.xml │ └── user │ │ └── user.xml ├── mysql-db │ └── demo.sql └── spring │ ├── cxf.xml │ ├── dao.xml │ ├── spring-mvc.xml │ ├── spring.xml │ └── transaction.xml └── webapp ├── WEB-INF ├── html │ └── index.html └── web.xml └── index.html /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Demos 2 | demos
3 | 1、dubbo 服务提供及消费例子
4 | 2、MyBatis Generator (MBG) 自动生成增删改查代码及配置文件例子
5 | 3、maven工程模块化例子
6 | 4、在Linux环境下,将Solr部署到tomcat7中,导入Mysql数据库数据, 定时更新索引
7 | 5、Spring集成Apache CXF开发JAX-RS Web Service
8 | -------------------------------------------------------------------------------- /dubbo-demo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | dubbo-demo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /dubbo-demo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | dubbo-demo-api 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.jdt.core.javanature 33 | org.eclipse.m2e.core.maven2Nature 34 | org.eclipse.wst.common.project.facet.core.nature 35 | 36 | 37 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | cn.hdu.edu 8 | dubbo-demo 9 | 0.0.1-SNAPSHOT 10 | 11 | dubbo-demo-api 12 | dubbo-demo-api 13 | http://maven.apache.org 14 | 15 | UTF-8 16 | 17 | 18 | 19 | ${project.groupId} 20 | dubbo-demo-common 21 | ${project.version} 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/src/main/java/org/dubbo/demo/api/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.api.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import org.dubbo.demo.common.model.User; 7 | 8 | public interface IUserService 9 | { 10 | public List queryAll(Map param) throws Exception; 11 | 12 | public void saveUser(Map param) throws Exception; 13 | 14 | public void deleteUser(Map param) throws Exception; 15 | } 16 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-api/src/test/java/org/dubbo/demo/api/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.api; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | public class AppTest extends TestCase 8 | { 9 | 10 | public AppTest(String testName) 11 | { 12 | super(testName); 13 | } 14 | 15 | public static Test suite() 16 | { 17 | return new TestSuite(AppTest.class); 18 | } 19 | 20 | public void testApp() 21 | { 22 | assertTrue(true); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | dubbo-demo-common 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.jdt.core.javanature 33 | org.eclipse.m2e.core.maven2Nature 34 | org.eclipse.wst.common.project.facet.core.nature 35 | 36 | 37 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | cn.hdu.edu 8 | dubbo-demo 9 | 0.0.1-SNAPSHOT 10 | 11 | dubbo-demo-common 12 | dubbo-demo-common 13 | http://maven.apache.org 14 | 15 | UTF-8 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/src/main/java/org/dubbo/demo/common/base/BaseController.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.common.base; 2 | 3 | import org.dubbo.demo.common.log.Logger; 4 | 5 | import com.google.gson.Gson; 6 | 7 | public class BaseController 8 | { 9 | public static final String FAILD = "faild"; 10 | public static final String SUCCESS = "success"; 11 | 12 | protected static final Gson gson = new Gson(); 13 | 14 | protected Logger logger = Logger.getLogger(this.getClass()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/src/main/java/org/dubbo/demo/common/base/BaseService.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.common.base; 2 | 3 | import org.dubbo.demo.common.log.Logger; 4 | 5 | public class BaseService 6 | { 7 | protected Logger logger = Logger.getLogger(this.getClass()); 8 | } 9 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/src/main/java/org/dubbo/demo/common/model/User.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.common.model; 2 | 3 | import java.io.Serializable; 4 | 5 | @SuppressWarnings("serial") 6 | public class User implements Serializable 7 | { 8 | 9 | private Long id; 10 | private String name; 11 | private String address; 12 | 13 | public Long getId() 14 | { 15 | return id; 16 | } 17 | 18 | public void setId(Long id) 19 | { 20 | this.id = id; 21 | } 22 | 23 | public String getName() 24 | { 25 | return name; 26 | } 27 | 28 | public void setName(String name) 29 | { 30 | this.name = name; 31 | } 32 | 33 | public String getAddress() 34 | { 35 | return address; 36 | } 37 | 38 | public void setAddress(String address) 39 | { 40 | this.address = address; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-common/src/test/java/org/dubbo/demo/common/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.common; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | public class AppTest extends TestCase 8 | { 9 | 10 | public AppTest(String testName) 11 | { 12 | super(testName); 13 | } 14 | 15 | public static Test suite() 16 | { 17 | return new TestSuite(AppTest.class); 18 | } 19 | 20 | public void testApp() 21 | { 22 | assertTrue(true); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | dubbo-demo-service 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 3 | org.eclipse.jdt.core.compiler.compliance=1.7 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.7 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/java/org/dubbo/demo/StartDubboService.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo; 2 | 3 | import org.dubbo.demo.common.log.Logger; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class StartDubboService 7 | { 8 | 9 | private static Logger logger = Logger.getLogger(StartDubboService.class); 10 | 11 | public static void main(String[] args) 12 | { 13 | try 14 | { 15 | @SuppressWarnings("resource") 16 | ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring.xml"); 17 | context.start(); 18 | logger.info("context start success."); 19 | } 20 | catch (Exception e) 21 | { 22 | logger.error("context start error.", e); 23 | } 24 | synchronized (StartDubboService.class) 25 | { 26 | while (true) 27 | { 28 | try 29 | { 30 | StartDubboService.class.wait(); 31 | } 32 | catch (InterruptedException e) 33 | { 34 | logger.error("synchronized error.", e); 35 | } 36 | } 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/java/org/dubbo/demo/dao/IUserDao.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.dao; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import org.dubbo.demo.common.model.User; 7 | 8 | public interface IUserDao 9 | { 10 | public List queryAll(Map param); 11 | 12 | public void saveUser(Map param); 13 | 14 | public void deleteUser(Map param); 15 | } 16 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/java/org/dubbo/demo/service/user/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.service.user.impl; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import org.dubbo.demo.api.service.IUserService; 7 | import org.dubbo.demo.common.model.User; 8 | import org.dubbo.demo.dao.IUserDao; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | 11 | import com.alibaba.dubbo.config.annotation.Service; 12 | 13 | @Service(interfaceClass = IUserService.class) 14 | public class UserServiceImpl implements IUserService 15 | { 16 | 17 | @Autowired 18 | private IUserDao userDao; 19 | 20 | @Override 21 | public List queryAll(Map param) throws Exception 22 | { 23 | return userDao.queryAll(param); 24 | } 25 | 26 | @Override 27 | public void saveUser(Map param) throws Exception 28 | { 29 | userDao.saveUser(param); 30 | 31 | } 32 | 33 | @Override 34 | public void deleteUser(Map param) throws Exception 35 | { 36 | userDao.deleteUser(param); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | #############################数据源相关配置######################################## 2 | url:jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 3 | driverClassName:com.mysql.jdbc.Driver 4 | jdbc_username:root 5 | jdbc_password:root 6 | 7 | filters:stat 8 | 9 | maxActive:20 10 | initialSize:1 11 | maxWait:60000 12 | minIdle:10 13 | maxIdle:15 14 | 15 | timeBetweenEvictionRunsMillis:60000 16 | minEvictableIdleTimeMillis:300000 17 | 18 | validationQuery:SELECT 'x' 19 | testWhileIdle:true 20 | testOnBorrow:false 21 | testOnReturn:false 22 | 23 | maxOpenPreparedStatements:20 24 | removeAbandoned:true 25 | removeAbandonedTimeout:1800 26 | logAbandoned:true 27 | 28 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/dubbo-demo.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/resources/mybatis/user/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | id, 7 | name, 8 | address 9 | 10 | 11 | 29 | 30 | 31 | insert into user ( 32 | name, 33 | address 34 | ) values ( 35 | #{name}, 36 | #{address} 37 | ) 38 | 39 | 40 | 41 | delete from user 42 | where 43 | id = #{userId} 44 | 45 | 46 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/main/resources/spring/dubbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/src/test/java/org/dubbo/demo/service/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.service; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | 8 | public class AppTest 9 | extends TestCase 10 | { 11 | 12 | public AppTest( String testName ) 13 | { 14 | super( testName ); 15 | } 16 | 17 | 18 | public static Test suite() 19 | { 20 | return new TestSuite( AppTest.class ); 21 | } 22 | 23 | 24 | public void testApp() 25 | { 26 | assertTrue( true ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/target/classes/config.properties: -------------------------------------------------------------------------------- 1 | #############################数据源相关配置######################################## 2 | url:jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 3 | driverClassName:com.mysql.jdbc.Driver 4 | jdbc_username:root 5 | jdbc_password:root 6 | 7 | filters:stat 8 | 9 | maxActive:20 10 | initialSize:1 11 | maxWait:60000 12 | minIdle:10 13 | maxIdle:15 14 | 15 | timeBetweenEvictionRunsMillis:60000 16 | minEvictableIdleTimeMillis:300000 17 | 18 | validationQuery:SELECT 'x' 19 | testWhileIdle:true 20 | testOnBorrow:false 21 | testOnReturn:false 22 | 23 | maxOpenPreparedStatements:20 24 | removeAbandoned:true 25 | removeAbandonedTimeout:1800 26 | logAbandoned:true 27 | 28 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/target/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/dubbo-demo.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/target/classes/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/target/classes/mybatis/user/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | id, 7 | name, 8 | address 9 | 10 | 11 | 29 | 30 | 31 | insert into user ( 32 | name, 33 | address 34 | ) values ( 35 | #{name}, 36 | #{address} 37 | ) 38 | 39 | 40 | 41 | delete from user 42 | where 43 | id = #{userId} 44 | 45 | 46 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-service/target/classes/spring/dubbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | dubbo-demo-web 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.m2e.core.maven2Builder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.jdt.core.javanature 38 | org.eclipse.m2e.core.maven2Nature 39 | org.eclipse.wst.common.project.facet.core.nature 40 | org.eclipse.wst.jsdt.core.jsNature 41 | 42 | 43 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | uses 9 | 10 | 11 | uses 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | cn.hdu.edu 8 | dubbo-demo 9 | 0.0.1-SNAPSHOT 10 | 11 | dubbo-demo-web 12 | war 13 | dubbo-demo-web Maven Webapp 14 | http://maven.apache.org 15 | 16 | 17 | ${project.groupId} 18 | dubbo-demo-common 19 | ${project.version} 20 | 21 | 22 | ${project.groupId} 23 | dubbo-demo-api 24 | ${project.version} 25 | 26 | 27 | javax.servlet 28 | javax.servlet-api 29 | 3.1.0 30 | provided 31 | 32 | 33 | 34 | 35 | dubbo-demo-web 36 | 37 | 38 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/java/org/dubbo/demo/listener/InitialListener.java: -------------------------------------------------------------------------------- 1 | package org.dubbo.demo.listener; 2 | 3 | import javax.servlet.ServletContextEvent; 4 | 5 | import org.dubbo.demo.common.log.Logger; 6 | import org.springframework.web.context.ContextLoaderListener; 7 | 8 | public class InitialListener extends ContextLoaderListener 9 | { 10 | private static Logger logger = Logger.getLogger(InitialListener.class); 11 | 12 | @Override 13 | public void contextDestroyed(ServletContextEvent event) 14 | { 15 | logger.info("start contextDestroyed."); 16 | super.contextDestroyed(event); 17 | 18 | } 19 | 20 | @Override 21 | public void contextInitialized(ServletContextEvent event) 22 | { 23 | logger.info("start contextInitialized."); 24 | 25 | super.contextInitialized(event); 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/dubbo-demo-web.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/resources/spring/dubbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/resources/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | webbf 4 | 5 | contextConfigLocation 6 | classpath:spring/spring.xml 7 | 8 | 9 | org.dubbo.demo.listener.InitialListener 10 | 11 | 12 | 13 | springMvc 14 | org.springframework.web.servlet.DispatcherServlet 15 | 16 | contextConfigLocation 17 | classpath:spring/spring-mvc.xml 18 | 19 | 1 20 | 21 | 22 | springMvc 23 | *.do 24 | 25 | 26 | 27 | 30 28 | 29 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/dubbo-demo-web.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/classes/spring/dubbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/classes/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Build-Jdk: 1.7.0_79 3 | Built-By: Administrator 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/m2e-wtp/web-resources/META-INF/maven/cn.hdu.edu/dubbo-demo-web/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Wed Oct 26 14:03:46 CST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=cn.hdu.edu 5 | m2e.projectName=dubbo-demo-web 6 | m2e.projectLocation=D\:\\ProgramFiles\\eclipseNew\\workspace\\dubbo-demo\\dubbo-demo-web 7 | artifactId=dubbo-demo-web 8 | -------------------------------------------------------------------------------- /dubbo-demo/dubbo-demo-web/target/m2e-wtp/web-resources/META-INF/maven/cn.hdu.edu/dubbo-demo-web/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | cn.hdu.edu 8 | dubbo-demo 9 | 0.0.1-SNAPSHOT 10 | 11 | dubbo-demo-web 12 | war 13 | dubbo-demo-web Maven Webapp 14 | http://maven.apache.org 15 | 16 | 17 | ${project.groupId} 18 | dubbo-demo-common 19 | ${project.version} 20 | 21 | 22 | ${project.groupId} 23 | dubbo-demo-api 24 | ${project.version} 25 | 26 | 27 | javax.servlet 28 | javax.servlet-api 29 | 3.1.0 30 | provided 31 | 32 | 33 | 34 | 35 | dubbo-demo-web 36 | 37 | 38 | -------------------------------------------------------------------------------- /dubbo-demo/readme.md: -------------------------------------------------------------------------------- 1 | dubbo demo 2 | http://www.cnblogs.com/chenpi/p/5999707.html 3 | -------------------------------------------------------------------------------- /dubbo-demo/service-pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | cn.hdu.edu 6 | dubbo-demo 7 | 0.0.1-SNAPSHOT 8 | pom 9 | dubbo-demo 10 | dubbo-demo 11 | 12 | dubbo-demo-common 13 | dubbo-demo-api 14 | dubbo-demo-service 15 | 16 | 17 | -------------------------------------------------------------------------------- /dubbo-demo/web-pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | cn.hdu.edu 6 | dubbo-demo 7 | 0.0.1-SNAPSHOT 8 | pom 9 | dubbo-demo 10 | dubbo-demo 11 | 12 | dubbo-demo-common 13 | dubbo-demo-api 14 | dubbo-demo-web 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /mbgdemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /mbgdemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | mbgdemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /mbgdemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /mbgdemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 3 | org.eclipse.jdt.core.compiler.compliance=1.7 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.7 6 | -------------------------------------------------------------------------------- /mbgdemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /mbgdemo/readme.md: -------------------------------------------------------------------------------- 1 | MyBatis Generator例子 http://www.cnblogs.com/chenpi/p/5988155.html 2 | -------------------------------------------------------------------------------- /mbgdemo/src/main/java/cn/edu/hdu/mbgdemo/App.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.mbgdemo; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mbgdemo/src/main/java/cn/edu/hdu/mbgdemo/base/BaseDao.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.mbgdemo.base; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * 7 | * @author cp_hdu@163.com 8 | * @version dmi V1.0.0, 2016年10月22日 9 | * @see 10 | * @since dmi V1.0.0 11 | */ 12 | public interface BaseDao { 13 | 14 | List selectAll(); 15 | 16 | int delete(String id); 17 | 18 | T select(String id); 19 | 20 | int insert(T record); 21 | 22 | int update(T record); 23 | } 24 | -------------------------------------------------------------------------------- /mbgdemo/src/test/java/cn/edu/hdu/mbgdemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.mbgdemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/classes/cn/edu/hdu/mbgdemo/App.class -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/App.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.mbgdemo; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/base/BaseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/classes/cn/edu/hdu/mbgdemo/base/BaseDao.class -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/base/BaseDao.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.mbgdemo.base; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * 7 | * @author cp_hdu@163.com 8 | * @version dmi V1.0.0, 2016年10月22日 9 | * @see 10 | * @since dmi V1.0.0 11 | */ 12 | public interface BaseDao { 13 | 14 | List selectAll(); 15 | 16 | int delete(String id); 17 | 18 | T select(String id); 19 | 20 | int insert(T record); 21 | 22 | int update(T record); 23 | } 24 | -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/base/BaseModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/classes/cn/edu/hdu/mbgdemo/base/BaseModel.class -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/dao/generator/DemoUserMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/classes/cn/edu/hdu/mbgdemo/dao/generator/DemoUserMapper.class -------------------------------------------------------------------------------- /mbgdemo/target/classes/cn/edu/hdu/mbgdemo/model/generator/DemoUser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/classes/cn/edu/hdu/mbgdemo/model/generator/DemoUser.class -------------------------------------------------------------------------------- /mbgdemo/target/test-classes/cn/edu/hdu/mbgdemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/mbgdemo/target/test-classes/cn/edu/hdu/mbgdemo/AppTest.class -------------------------------------------------------------------------------- /multi-module/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multi-module 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /multi-module/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multi-module-common 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.jdt.core.javanature 33 | org.eclipse.m2e.core.maven2Nature 34 | org.eclipse.wst.common.project.facet.core.nature 35 | 36 | 37 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/src/main/java/org/multi/module/common/model/User.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: User.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月24日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月24日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package org.multi.module.common.model; 15 | 16 | /** 17 | * 18 | * @author Pi Chen 19 | * @version webbf V1.0.0, 2016年5月24日 20 | * @see 21 | * @since webbf V1.0.0 22 | */ 23 | 24 | public class User { 25 | 26 | private Long id; 27 | private String name; 28 | private String address; 29 | /** 30 | * @return the id 31 | */ 32 | public Long getId() { 33 | return id; 34 | } 35 | /** 36 | * @param id the id to set 37 | */ 38 | public void setId(Long id) { 39 | this.id = id; 40 | } 41 | /** 42 | * @return the name 43 | */ 44 | public String getName() { 45 | return name; 46 | } 47 | /** 48 | * @param name the name to set 49 | */ 50 | public void setName(String name) { 51 | this.name = name; 52 | } 53 | /** 54 | * @return the address 55 | */ 56 | public String getAddress() { 57 | return address; 58 | } 59 | /** 60 | * @param address the address to set 61 | */ 62 | public void setAddress(String address) { 63 | this.address = address; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /multi-module/multi-module-common/src/test/java/org/multi/module/common/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.multi.module.common; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multi-module-dao 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.jdt.core.javanature 33 | org.eclipse.m2e.core.maven2Nature 34 | org.eclipse.wst.common.project.facet.core.nature 35 | 36 | 37 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/resources/mybatis/user/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | id, 7 | name, 8 | address 9 | 10 | 11 | 29 | 30 | 31 | insert into user ( 32 | name, 33 | address 34 | ) values ( 35 | #{name}, 36 | #{address} 37 | ) 38 | 39 | 40 | 41 | delete from user 42 | where 43 | id = #{userId} 44 | 45 | 46 | -------------------------------------------------------------------------------- /multi-module/multi-module-dao/src/test/java/org/multi/module/dao/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.multi.module.dao; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multi-module-service 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.jdt.core.javanature 33 | org.eclipse.m2e.core.maven2Nature 34 | org.eclipse.wst.common.project.facet.core.nature 35 | 36 | 37 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | cn.edu.hdu.mm 7 | multi-module 8 | 0.0.1-SNAPSHOT 9 | 10 | multi-module-service 11 | multi-module-service 12 | http://maven.apache.org 13 | 14 | UTF-8 15 | 16 | 17 | 18 | ${project.groupId} 19 | multi-module-dao 20 | ${project.version} 21 | 22 | 23 | 24 | junit 25 | junit 26 | 3.8.1 27 | test 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/src/main/java/org/multi/module/service/IUserService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: IUserDao.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月24日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月24日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package org.multi.module.service; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | import org.multi.module.common.model.User; 20 | 21 | 22 | 23 | /** 24 | * 25 | * @author Pi Chen 26 | * @version webbf V1.0.0, 2016年5月24日 27 | * @see 28 | * @since webbf V1.0.0 29 | */ 30 | 31 | public interface IUserService { 32 | 33 | public List queryAll(Map param) throws Exception; 34 | 35 | public void saveUser(Map param) throws Exception; 36 | 37 | public void deleteUser(Map param) throws Exception; 38 | } 39 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/src/main/java/org/multi/module/service/base/BaseService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: BaseService.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月24日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月24日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package org.multi.module.service.base; 15 | 16 | import org.multi.module.common.log.Logger; 17 | 18 | 19 | 20 | /** 21 | * 22 | * @author Pi Chen 23 | * @version webbf V1.0.0, 2016年5月24日 24 | * @see 25 | * @since webbf V1.0.0 26 | */ 27 | 28 | public class BaseService { 29 | protected Logger logger = Logger.getLogger(this.getClass()); 30 | } 31 | -------------------------------------------------------------------------------- /multi-module/multi-module-service/src/test/java/org/multi/module/service/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.multi.module.service; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multi-module-web 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.m2e.core.maven2Builder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.jdt.core.javanature 38 | org.eclipse.m2e.core.maven2Nature 39 | org.eclipse.wst.common.project.facet.core.nature 40 | org.eclipse.wst.jsdt.core.jsNature 41 | 42 | 43 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /multi-module/multi-module-web/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/java/org/multi/module/controller/BaseController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: BaseController.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月23日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月23日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package org.multi.module.controller; 15 | 16 | import org.multi.module.common.log.Logger; 17 | 18 | 19 | 20 | 21 | 22 | /** 23 | * 24 | * @author Pi Chen 25 | * @version webbf V1.0.0, 2016年5月23日 26 | * @see 27 | * @since webbf V1.0.0 28 | */ 29 | 30 | public class BaseController { 31 | /** 32 | * 日志 33 | */ 34 | protected Logger logger = Logger.getLogger(this.getClass()); 35 | } 36 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/java/org/multi/module/core/listener/InitialListener.java: -------------------------------------------------------------------------------- 1 | package org.multi.module.core.listener; 2 | 3 | import javax.servlet.ServletContextEvent; 4 | 5 | import org.multi.module.common.log.Logger; 6 | import org.springframework.web.context.ContextLoaderListener; 7 | 8 | 9 | 10 | /** 11 | * 12 | * 13 | * @author Pi Chen 14 | * @version webbf V1.0.0, 2016年5月23日 15 | * @see 16 | * @since webbf V1.0.0 17 | */ 18 | public class InitialListener extends ContextLoaderListener { 19 | private static Logger logger = Logger.getLogger(InitialListener.class); 20 | 21 | /** 22 | * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent) 23 | * @param arg0 24 | */ 25 | @Override 26 | public void contextDestroyed(ServletContextEvent event) { 27 | logger.info("start contextDestroyed."); 28 | super.contextDestroyed(event); 29 | 30 | } 31 | 32 | /** 33 | * @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent) 34 | * @param arg0 35 | */ 36 | @Override 37 | public void contextInitialized(ServletContextEvent event) { 38 | logger.info("start contextInitialized."); 39 | 40 | super.contextInitialized(event); 41 | 42 | 43 | 44 | 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | url:jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 2 | driverClassName:com.mysql.jdbc.Driver 3 | jdbc_username:root 4 | jdbc_password:root 5 | 6 | filters:stat 7 | 8 | maxActive:20 9 | initialSize:1 10 | maxWait:60000 11 | minIdle:10 12 | maxIdle:15 13 | 14 | timeBetweenEvictionRunsMillis:60000 15 | minEvictableIdleTimeMillis:300000 16 | 17 | validationQuery:SELECT 'x' 18 | testWhileIdle:true 19 | testOnBorrow:false 20 | testOnReturn:false 21 | 22 | maxOpenPreparedStatements:20 23 | removeAbandoned:true 24 | removeAbandonedTimeout:1800 25 | logAbandoned:true 26 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/web.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/resources/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/target/classes/config.properties: -------------------------------------------------------------------------------- 1 | url:jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 2 | driverClassName:com.mysql.jdbc.Driver 3 | jdbc_username:root 4 | jdbc_password:root 5 | 6 | filters:stat 7 | 8 | maxActive:20 9 | initialSize:1 10 | maxWait:60000 11 | minIdle:10 12 | maxIdle:15 13 | 14 | timeBetweenEvictionRunsMillis:60000 15 | minEvictableIdleTimeMillis:300000 16 | 17 | validationQuery:SELECT 'x' 18 | testWhileIdle:true 19 | testOnBorrow:false 20 | testOnReturn:false 21 | 22 | maxOpenPreparedStatements:20 23 | removeAbandoned:true 24 | removeAbandonedTimeout:1800 25 | logAbandoned:true 26 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/target/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/web.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /multi-module/multi-module-web/target/classes/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Administrator 3 | Build-Jdk: 1.8.0_73 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /multi-module/multi-module-web/target/m2e-wtp/web-resources/META-INF/maven/cn.edu.hdu.mm/multi-module-web/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Sat Oct 22 12:56:58 CST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=cn.edu.hdu.mm 5 | m2e.projectName=multi-module-web 6 | m2e.projectLocation=D\:\\ProgramFiles_dev\\eclipse\\workspace\\multi-module\\multi-module-web 7 | artifactId=multi-module-web 8 | -------------------------------------------------------------------------------- /multi-module/readme.md: -------------------------------------------------------------------------------- 1 | maven工程模块化例子 2 | http://www.cnblogs.com/chenpi/p/5987332.html 3 | -------------------------------------------------------------------------------- /solr-in-tomcat/lib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/lib.png -------------------------------------------------------------------------------- /solr-in-tomcat/log4j.properties: -------------------------------------------------------------------------------- 1 | # Logging level 2 | solr.log=logs 3 | log4j.rootLogger=INFO, file, CONSOLE 4 | 5 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 6 | 7 | log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout 8 | log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n 9 | 10 | #- size rotation with log cleanup. 11 | log4j.appender.file=org.apache.log4j.RollingFileAppender 12 | log4j.appender.file.MaxFileSize=4MB 13 | log4j.appender.file.MaxBackupIndex=9 14 | 15 | #- File to log to and log format 16 | log4j.appender.file.File=${solr.log}/solr.log 17 | log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout 18 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n 19 | 20 | log4j.logger.org.apache.zookeeper=WARN 21 | log4j.logger.org.apache.hadoop=WARN 22 | 23 | # set to INFO to enable infostream log messages 24 | log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/readme.md: -------------------------------------------------------------------------------- 1 | 4、在Linux环境下,将Solr部署到tomcat7中,导入Mysql数据库数据, 定时更新索引
2 | -------------------------------------------------------------------------------- /solr-in-tomcat/solr-dataimportscheduler-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solr-dataimportscheduler-1.1.1.jar -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/basic_configs/conf/_rest_managed.json: -------------------------------------------------------------------------------- 1 | {"initArgs":{},"managedList":[]} 2 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/basic_configs/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/basic_configs/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/basic_configs/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_ca.txt: -------------------------------------------------------------------------------- 1 | # Set of Catalan contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | l 5 | m 6 | n 7 | s 8 | t 9 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_fr.txt: -------------------------------------------------------------------------------- 1 | # Set of French contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | l 4 | m 5 | t 6 | qu 7 | n 8 | s 9 | j 10 | d 11 | c 12 | jusqu 13 | quoiqu 14 | lorsqu 15 | puisqu 16 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | m 5 | b 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/contractions_it.txt: -------------------------------------------------------------------------------- 1 | # Set of Italian contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | c 4 | l 5 | all 6 | dall 7 | dell 8 | nell 9 | sull 10 | coll 11 | pell 12 | gl 13 | agl 14 | dagl 15 | degl 16 | negl 17 | sugl 18 | un 19 | m 20 | t 21 | s 22 | v 23 | d 24 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/hyphenations_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish hyphenations for StopFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | h 4 | n 5 | t 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stemdict_nl.txt: -------------------------------------------------------------------------------- 1 | # Set of overrides for the dutch stemmer 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | fiets fiets 4 | bromfiets bromfiets 5 | ei eier 6 | kind kinder 7 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_el.txt: -------------------------------------------------------------------------------- 1 | # Lucene Greek Stopwords list 2 | # Note: by default this file is used after GreekLowerCaseFilter, 3 | # so when modifying this file use 'σ' instead of 'ς' 4 | ο 5 | η 6 | το 7 | οι 8 | τα 9 | του 10 | τησ 11 | των 12 | τον 13 | την 14 | και 15 | κι 16 | κ 17 | ειμαι 18 | εισαι 19 | ειναι 20 | ειμαστε 21 | ειστε 22 | στο 23 | στον 24 | στη 25 | στην 26 | μα 27 | αλλα 28 | απο 29 | για 30 | προσ 31 | με 32 | σε 33 | ωσ 34 | παρα 35 | αντι 36 | κατα 37 | μετα 38 | θα 39 | να 40 | δε 41 | δεν 42 | μη 43 | μην 44 | επι 45 | ενω 46 | εαν 47 | αν 48 | τοτε 49 | που 50 | πωσ 51 | ποιοσ 52 | ποια 53 | ποιο 54 | ποιοι 55 | ποιεσ 56 | ποιων 57 | ποιουσ 58 | αυτοσ 59 | αυτη 60 | αυτο 61 | αυτοι 62 | αυτων 63 | αυτουσ 64 | αυτεσ 65 | αυτα 66 | εκεινοσ 67 | εκεινη 68 | εκεινο 69 | εκεινοι 70 | εκεινεσ 71 | εκεινα 72 | εκεινων 73 | εκεινουσ 74 | οπωσ 75 | ομωσ 76 | ισωσ 77 | οσο 78 | οτι 79 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_ga.txt: -------------------------------------------------------------------------------- 1 | 2 | a 3 | ach 4 | ag 5 | agus 6 | an 7 | aon 8 | ar 9 | arna 10 | as 11 | b' 12 | ba 13 | beirt 14 | bhúr 15 | caoga 16 | ceathair 17 | ceathrar 18 | chomh 19 | chtó 20 | chuig 21 | chun 22 | cois 23 | céad 24 | cúig 25 | cúigear 26 | d' 27 | daichead 28 | dar 29 | de 30 | deich 31 | deichniúr 32 | den 33 | dhá 34 | do 35 | don 36 | dtí 37 | dá 38 | dár 39 | dó 40 | faoi 41 | faoin 42 | faoina 43 | faoinár 44 | fara 45 | fiche 46 | gach 47 | gan 48 | go 49 | gur 50 | haon 51 | hocht 52 | i 53 | iad 54 | idir 55 | in 56 | ina 57 | ins 58 | inár 59 | is 60 | le 61 | leis 62 | lena 63 | lenár 64 | m' 65 | mar 66 | mo 67 | mé 68 | na 69 | nach 70 | naoi 71 | naonúr 72 | ná 73 | ní 74 | níor 75 | nó 76 | nócha 77 | ocht 78 | ochtar 79 | os 80 | roimh 81 | sa 82 | seacht 83 | seachtar 84 | seachtó 85 | seasca 86 | seisear 87 | siad 88 | sibh 89 | sinn 90 | sna 91 | sé 92 | sí 93 | tar 94 | thar 95 | thú 96 | triúr 97 | trí 98 | trína 99 | trínár 100 | tríocha 101 | tú 102 | um 103 | ár 104 | é 105 | éis 106 | í 107 | ó 108 | ón 109 | óna 110 | ónár 111 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/stopwords_hy.txt: -------------------------------------------------------------------------------- 1 | # example set of Armenian stopwords. 2 | այդ 3 | այլ 4 | այն 5 | այս 6 | դու 7 | դուք 8 | եմ 9 | են 10 | ենք 11 | ես 12 | եք 13 | է 14 | էի 15 | էին 16 | էինք 17 | էիր 18 | էիք 19 | էր 20 | ըստ 21 | թ 22 | ի 23 | ին 24 | իսկ 25 | իր 26 | կամ 27 | համար 28 | հետ 29 | հետո 30 | մենք 31 | մեջ 32 | մի 33 | ն 34 | նա 35 | նաև 36 | նրա 37 | նրանք 38 | որ 39 | որը 40 | որոնք 41 | որպես 42 | ու 43 | ում 44 | պիտի 45 | վրա 46 | և 47 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/lang/userdict_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer) 3 | # 4 | # Add entries to this file in order to override the statistical model in terms 5 | # of segmentation, readings and part-of-speech tags. Notice that entries do 6 | # not have weights since they are always used when found. This is by-design 7 | # in order to maximize ease-of-use. 8 | # 9 | # Entries are defined using the following CSV format: 10 | # , ... , ... , 11 | # 12 | # Notice that a single half-width space separates tokens and readings, and 13 | # that the number tokens and readings must match exactly. 14 | # 15 | # Also notice that multiple entries with the same is undefined. 16 | # 17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines. 18 | # 19 | 20 | # Custom segmentation for kanji compounds 21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞 23 | 24 | # Custom segmentation for compound katakana 25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞 26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞 27 | 28 | # Custom reading for former sumo wrestler 29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/params.json: -------------------------------------------------------------------------------- 1 | {"params":{ 2 | "query":{ 3 | "defType":"edismax", 4 | "q.alt":"*:*", 5 | "rows":"10", 6 | "fl":"*,score", 7 | "":{"v":0} 8 | }, 9 | "facets":{ 10 | "facet":"on", 11 | "facet.mincount": "1", 12 | "":{"v":0} 13 | }, 14 | "velocity":{ 15 | "wt": "velocity", 16 | "v.template":"browse", 17 | "v.layout": "layout", 18 | "":{"v":0} 19 | } 20 | }} 21 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/data_driven_schema_configs/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_rest_managed.json: -------------------------------------------------------------------------------- 1 | {"initArgs":{},"managedList":[]} 2 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json: -------------------------------------------------------------------------------- 1 | { 2 | "initArgs":{"ignoreCase":true}, 3 | "managedList":[ 4 | "a", 5 | "an", 6 | "and", 7 | "are", 8 | "as", 9 | "at", 10 | "be", 11 | "but", 12 | "by", 13 | "for", 14 | "if", 15 | "in", 16 | "into", 17 | "is", 18 | "it", 19 | "no", 20 | "not", 21 | "of", 22 | "on", 23 | "or", 24 | "stopworda", 25 | "stopwordb", 26 | "such", 27 | "that", 28 | "the", 29 | "their", 30 | "then", 31 | "there", 32 | "these", 33 | "they", 34 | "this", 35 | "to", 36 | "was", 37 | "will", 38 | "with"]} 39 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json: -------------------------------------------------------------------------------- 1 | { 2 | "initArgs":{ 3 | "ignoreCase":true, 4 | "format":"solr" 5 | }, 6 | "managedMap":{ 7 | "GB":["GiB","Gigabyte"], 8 | "happy":["glad","joyful"], 9 | "TV":["Television"] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.menu-bottom.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/admin-extra.menu-top.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt: -------------------------------------------------------------------------------- 1 | An override location of the clustering algorithm's resources 2 | attribute definitions and lexical resources. 3 | 4 | A directory from which to load algorithm-specific stop words, 5 | stop labels and attribute definition XMLs. 6 | 7 | For an overview of Carrot2 lexical resources, see: 8 | http://download.carrot2.org/head/manual/#chapter.lexical-resources 9 | 10 | For an overview of Lingo3G lexical resources, see: 11 | http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources 12 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt: -------------------------------------------------------------------------------- 1 | # Set of Catalan contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | l 5 | m 6 | n 7 | s 8 | t 9 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt: -------------------------------------------------------------------------------- 1 | # Set of French contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | l 4 | m 5 | t 6 | qu 7 | n 8 | s 9 | j 10 | d 11 | c 12 | jusqu 13 | quoiqu 14 | lorsqu 15 | puisqu 16 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | m 5 | b 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt: -------------------------------------------------------------------------------- 1 | # Set of Italian contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | c 4 | l 5 | all 6 | dall 7 | dell 8 | nell 9 | sull 10 | coll 11 | pell 12 | gl 13 | agl 14 | dagl 15 | degl 16 | negl 17 | sugl 18 | un 19 | m 20 | t 21 | s 22 | v 23 | d 24 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish hyphenations for StopFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | h 4 | n 5 | t 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt: -------------------------------------------------------------------------------- 1 | # Set of overrides for the dutch stemmer 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | fiets fiets 4 | bromfiets bromfiets 5 | ei eier 6 | kind kinder 7 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt: -------------------------------------------------------------------------------- 1 | # Lucene Greek Stopwords list 2 | # Note: by default this file is used after GreekLowerCaseFilter, 3 | # so when modifying this file use 'σ' instead of 'ς' 4 | ο 5 | η 6 | το 7 | οι 8 | τα 9 | του 10 | τησ 11 | των 12 | τον 13 | την 14 | και 15 | κι 16 | κ 17 | ειμαι 18 | εισαι 19 | ειναι 20 | ειμαστε 21 | ειστε 22 | στο 23 | στον 24 | στη 25 | στην 26 | μα 27 | αλλα 28 | απο 29 | για 30 | προσ 31 | με 32 | σε 33 | ωσ 34 | παρα 35 | αντι 36 | κατα 37 | μετα 38 | θα 39 | να 40 | δε 41 | δεν 42 | μη 43 | μην 44 | επι 45 | ενω 46 | εαν 47 | αν 48 | τοτε 49 | που 50 | πωσ 51 | ποιοσ 52 | ποια 53 | ποιο 54 | ποιοι 55 | ποιεσ 56 | ποιων 57 | ποιουσ 58 | αυτοσ 59 | αυτη 60 | αυτο 61 | αυτοι 62 | αυτων 63 | αυτουσ 64 | αυτεσ 65 | αυτα 66 | εκεινοσ 67 | εκεινη 68 | εκεινο 69 | εκεινοι 70 | εκεινεσ 71 | εκεινα 72 | εκεινων 73 | εκεινουσ 74 | οπωσ 75 | ομωσ 76 | ισωσ 77 | οσο 78 | οτι 79 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt: -------------------------------------------------------------------------------- 1 | # example set of Armenian stopwords. 2 | այդ 3 | այլ 4 | այն 5 | այս 6 | դու 7 | դուք 8 | եմ 9 | են 10 | ենք 11 | ես 12 | եք 13 | է 14 | էի 15 | էին 16 | էինք 17 | էիր 18 | էիք 19 | էր 20 | ըստ 21 | թ 22 | ի 23 | ին 24 | իսկ 25 | իր 26 | կամ 27 | համար 28 | հետ 29 | հետո 30 | մենք 31 | մեջ 32 | մի 33 | ն 34 | նա 35 | նաև 36 | նրա 37 | նրանք 38 | որ 39 | որը 40 | որոնք 41 | որպես 42 | ու 43 | ում 44 | պիտի 45 | վրա 46 | և 47 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer) 3 | # 4 | # Add entries to this file in order to override the statistical model in terms 5 | # of segmentation, readings and part-of-speech tags. Notice that entries do 6 | # not have weights since they are always used when found. This is by-design 7 | # in order to maximize ease-of-use. 8 | # 9 | # Entries are defined using the following CSV format: 10 | # , ... , ... , 11 | # 12 | # Notice that a single half-width space separates tokens and readings, and 13 | # that the number tokens and readings must match exactly. 14 | # 15 | # Also notice that multiple entries with the same is undefined. 16 | # 17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines. 18 | # 19 | 20 | # Custom segmentation for kanji compounds 21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞 23 | 24 | # Custom segmentation for compound katakana 25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞 26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞 27 | 28 | # Custom reading for former sumo wrestler 29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/spellings.txt: -------------------------------------------------------------------------------- 1 | pizza 2 | history 3 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/browse.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Main entry point into the /browse templates 3 | *# 4 | 5 | #set($searcher = $request.searcher) 6 | #set($params = $request.params) 7 | #set($clusters = $response.response.clusters) 8 | #set($mltResults = $response.response.get("moreLikeThis")) 9 | #set($annotate = $params.get("annotateBrowse")) 10 | #parse('query_form.vm') 11 | #parse('did_you_mean.vm') 12 | 13 | 16 | 17 | 20 | 21 | ## Show Error Message, if any 22 |
23 | #parse("error.vm") 24 |
25 | 26 | ## Render Results, actual matching docs 27 |
28 | #parse("results_list.vm") 29 |
30 | 31 | 34 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/cluster.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Check if Clustering is Enabled and then 3 | * call cluster_results.vm 4 | *# 5 | 6 |

7 | Clusters 8 |

9 | 10 | ## Div tag has placeholder text by default 11 |
12 | Run Solr with option -Dsolr.clustering.enabled=true to see clustered search results. 13 |
14 | 15 | ## Replace the div content *if* Carrot^2 is available 16 | 20 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Actual rendering of Clusters 3 | *# 4 | 5 | ## For each cluster 6 | #foreach ($clusters in $response.response.clusters) 7 | 8 | #set($labels = $clusters.get('labels')) 9 | #set($docs = $clusters.get('docs')) 10 | 11 | ## This Cluster's Heading 12 |

13 | #foreach ($label in $labels) 14 | ## Keep the following line together to prevent 15 | ## a space appearing before each comma 16 | $label#if( $foreach.hasNext ),#end 17 | #end 18 |

19 | 20 | ## This Cluster's Documents 21 |
    22 | ## For each doc in this cluster 23 | #foreach ($cluDoc in $docs) 24 |
  1. 25 | 26 | $cluDoc 27 |
  2. 28 | #end 29 |
30 | 31 | #end ## end for each Cluster 32 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/debug.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Show Debugging Information, if enabled 3 | *# 4 | 5 | #if( $params.getBool("debugQuery",false) ) 6 | 7 | toggle explain 8 | 9 |
10 |     $response.getExplainMap().get($doc.getFirstValue('id'))
11 |   
12 | 13 | 14 | toggle all fields 15 | 16 | 17 | #foreach($fieldname in $doc.fieldNames) 18 |
19 | $fieldname : 20 | 21 | #foreach($value in $doc.getFieldValues($fieldname)) 22 | $esc.html($value) 23 | #end 24 | 25 |
26 | #end 27 |
28 | #end 29 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Hyperlinked spelling suggestions in results list 3 | *# 4 | 5 | #set($collations = $response.response.spellcheck.collations.getAll("collation")) 6 | #if($collations.size() > 0) 7 | Did you mean 8 | #foreach($collation in $collations) 9 | $esc.html($collation.collationQuery) ($collation.hits)? 10 | #end 11 | #end 12 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/error.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Show Error Message, if any 3 | *# 4 | 5 | ## Show Error Message, if any 6 | ## Usually rendered inside div class=error 7 | 8 | #if( $response.response.error.code ) 9 |

ERROR $response.response.error.code

10 | $response.response.error.msg 11 | #end 12 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on field values 3 | * e.g.: fields specified by &facet.field= 4 | *# 5 | 6 | #if($response.facetFields) 7 |

8 | Field Facets 9 |

10 | #foreach($field in $response.facetFields) 11 | ## Hide facets without value 12 | #if($field.values.size() > 0) 13 | $field.name 14 | 22 | #end ## end if > 0 23 | #end ## end for each facet field 24 | #end ## end if response has facet fields 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display Pivot-Based Facets 3 | * e.g.: facets specified by &facet.pivot= 4 | *# 5 | 6 |

7 | Pivot Facets 8 |

9 | 10 | #set($pivot = $response.response.facet_counts.facet_pivot) 11 | 12 | #display_facet_pivot($pivot, "") 13 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on specific facet queries 3 | * e.g.: facets specified by &facet.query= 4 | *# 5 | 6 | #set($field = $response.response.facet_counts.facet_queries) 7 | 8 |

9 | Query Facets 10 |

11 | 12 | #display_facet_query($field, "", "") 13 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on ranges of values, AKA "Bukets" 3 | * e.g.: ranges specified by &facet.range= 4 | *# 5 | 6 |

7 | Range Facets 8 |

9 | 10 | #foreach ($field in $response.response.facet_counts.facet_ranges) 11 | ## Hide facets without value 12 | #if($field.value.counts.size() > 0) 13 | #set($name = $field.key) 14 | #set($display = $name) 15 | #set($f = $field.value.counts) 16 | #set($start = $field.value.start) 17 | #set($end = $field.value.end) 18 | #set($gap = $field.value.gap) 19 | #set($before = $field.value.before) 20 | #set($after = $field.value.after) 21 | #display_facet_range($f, $display, $name, $start, $end, $gap, $before, $after) 22 | #end ## end if has any values 23 | #end ## end for each facet range 24 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/facets.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Overall Facet display block 3 | * Invokes the 4 facet and 1 cluster template 4 | *# 5 | 6 | #parse('facet_fields.vm') 7 | #parse('facet_queries.vm') 8 | #parse('facet_ranges.vm') 9 | #parse('facet_pivot.vm') 10 | #parse('cluster.vm') 11 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/header.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render the top section of the page visible to users 3 | *# 4 | 5 | 8 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/hit.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Called for each matching document but then 3 | * calls one of product_doc, join_doc or richtext_doc 4 | * depending on which fields the doc has 5 | *# 6 | 7 | #set($docId = $doc.getFieldValue('id')) 8 | 9 |
10 | 11 | ## Has a "name" field ? 12 | #if($doc.getFieldValue('name')) 13 | #parse("product_doc.vm") 14 | 15 | ## Has a "compName_s" field ? 16 | #elseif($doc.getFieldValue('compName_s')) 17 | #parse("join_doc.vm") 18 | 19 | ## Fallback to richtext_doc 20 | #else 21 | #parse("richtext_doc.vm") 22 | 23 | #end 24 | 25 |
26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display grouped results 3 | *# 4 | 5 |
6 | 7 |
8 | $grouping.key 9 |
10 | 11 |
12 | Total Matches in Group: $grouping.value.matches 13 |
14 | 15 |
## list of groups 16 | 17 | #foreach ($group in $grouping.value.groups) 18 |
19 | #if($group.groupValue)$group.groupValue#{else}No group#end 20 | 21 | ($group.doclist.numFound) 22 | 23 |
24 | 25 |
28 | #foreach ($doc in $group.doclist) 29 | #set($docId = $doc.getFieldValue('id')) 30 | #if($doc.getFieldValue('name')) 31 | #parse("product_doc.vm") 32 | #elseif($doc.getFieldValue('compName_s')) 33 | #parse("join_doc.vm") 34 | #else 35 | #parse("richtext_doc.vm") 36 | #end 37 | #end 38 |
39 | 40 | #end ## end of foreach group in grouping.value.groups 41 |
## div tag for entire list of groups 42 | 43 |
## end of div class=result-document 44 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * An extremely plain / debug version of hit.vm 3 | *# 4 | 5 | 6 | ## For each field 7 | #foreach( $fieldName in $doc.fieldNames ) 8 | ## For each value 9 | #foreach( $value in $doc.getFieldValues($fieldName) ) 10 | 11 | ## Field Name 12 | 17 | ## Field Value(s) 18 | 21 | 22 | #end ## end for each value 23 | #end ## end for each field 24 |
13 | #if( $foreach.count == 1 ) 14 | $fieldName: 15 | #end 16 | 19 | $esc.html($value)
20 |
25 |
26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display documents that are joined to other documents 3 | *# 4 | 5 |
6 | #field('compName_s') 7 |
8 | 9 |
10 | Id: #field('id') 11 | (company-details document for 12 | join 13 | ) 14 |
15 | 16 |
17 | Address: #field('address_s') 18 |
19 | 20 | #parse('debug.vm') 21 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results { 2 | padding: 0px; 3 | border: 1px solid black; 4 | background-color: white; 5 | overflow: hidden; 6 | z-index: 99999; 7 | } 8 | 9 | .ac_results ul { 10 | width: 100%; 11 | list-style-position: outside; 12 | list-style: none; 13 | padding: 0; 14 | margin: 0; 15 | } 16 | 17 | .ac_results li { 18 | margin: 0px; 19 | padding: 2px 5px; 20 | cursor: default; 21 | display: block; 22 | /* 23 | if width will be 100% horizontal scrollbar will apear 24 | when scroll mode will be used 25 | */ 26 | /*width: 100%;*/ 27 | font: menu; 28 | font-size: 12px; 29 | /* 30 | it is very important, if line-height not setted or setted 31 | in relative units scroll will be broken in firefox 32 | */ 33 | line-height: 16px; 34 | overflow: hidden; 35 | } 36 | 37 | .ac_loading { 38 | background: white url('indicator.gif') right center no-repeat; 39 | } 40 | 41 | .ac_odd { 42 | background-color: #eee; 43 | } 44 | 45 | .ac_over { 46 | background-color: #0A246A; 47 | color: white; 48 | } 49 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/layout.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Overall HTML page layout 3 | *# 4 | 5 | 6 | 7 | #parse("head.vm") 8 | 9 | 10 | 11 | 14 |
15 | #parse("tabs.vm") 16 |
17 |
18 | $content 19 |
20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Paging and Statistics at bottom of results 3 | *# 4 | 5 | ## Usually rendered in pagination div tag 6 | 7 | #if($response.response.get('grouped')) 8 | ## pass 9 | #else 10 | 11 | #link_to_previous_page("previous") 12 | 13 | $page.results_found 14 | results found. 15 | 16 | Page $page.current_page_number 17 | of $page.page_count 18 | 19 | #link_to_next_page("next") 20 | 21 | #end 22 |
23 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Paging and Statistics at top of results 3 | *# 4 | 5 | ## Usually rendered in pagination div tag 6 | 7 | ## Grouped Results / Not Paginated 8 | #if($response.response.get('grouped')) 9 | 10 | 11 | 12 | $response.response.get('grouped').size() group(s) 13 | 14 | found in ${response.responseHeader.QTime} ms 15 | 16 | 17 | ## Regular Results / Use Paging Links if needed 18 | #else 19 | 20 | 21 | $page.results_found 22 | results found in 23 | ${response.responseHeader.QTime} ms 24 | 25 | 26 | Page $page.current_page_number 27 | of $page.page_count 28 | 29 | #end ## end else non-grouped results, normal pagination 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/query_group.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Query settings for grouping by fields, 3 | * e.g.: Manufacturer or Popularity 4 | *# 5 | 6 | #set($queryOpts = $params.get("queryOpts")) 7 | 8 | #if($queryOpts == "group") 9 |
10 | #set($groupF = $request.params.get('group.field')) 11 | 12 | 38 | 39 | 40 | 41 |
42 | 43 | #end 44 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/results_list.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render the main Results List 3 | *# 4 | 5 | ## Usually displayed inside
6 | 7 | #if($response.response.get('grouped')) 8 | 9 | #foreach($grouping in $response.response.get('grouped')) 10 | #parse("hit_grouped.vm") 11 | #end 12 | 13 | #else 14 | 15 | #foreach($doc in $response.results) 16 | #parse("hit.vm") 17 | ## Can get an extremely simple view of the doc 18 | ## which might be nicer for debugging 19 | ##parse("hit_plain.vm") 20 | #end 21 | 22 | #end 23 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/configsets/sample_techproducts_configs/conf/velocity/suggest.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Provides cynamic spelling suggestions 3 | * as you type in the search form 4 | *# 5 | 6 | #foreach($t in $response.response.terms.name) 7 | $t.key 8 | #end 9 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/contractions_ca.txt: -------------------------------------------------------------------------------- 1 | # Set of Catalan contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | l 5 | m 6 | n 7 | s 8 | t 9 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/contractions_fr.txt: -------------------------------------------------------------------------------- 1 | # Set of French contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | l 4 | m 5 | t 6 | qu 7 | n 8 | s 9 | j 10 | d 11 | c 12 | jusqu 13 | quoiqu 14 | lorsqu 15 | puisqu 16 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/contractions_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | m 5 | b 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/contractions_it.txt: -------------------------------------------------------------------------------- 1 | # Set of Italian contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | c 4 | l 5 | all 6 | dall 7 | dell 8 | nell 9 | sull 10 | coll 11 | pell 12 | gl 13 | agl 14 | dagl 15 | degl 16 | negl 17 | sugl 18 | un 19 | m 20 | t 21 | s 22 | v 23 | d 24 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/hyphenations_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish hyphenations for StopFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | h 4 | n 5 | t 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/stemdict_nl.txt: -------------------------------------------------------------------------------- 1 | # Set of overrides for the dutch stemmer 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | fiets fiets 4 | bromfiets bromfiets 5 | ei eier 6 | kind kinder 7 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/stopwords_el.txt: -------------------------------------------------------------------------------- 1 | # Lucene Greek Stopwords list 2 | # Note: by default this file is used after GreekLowerCaseFilter, 3 | # so when modifying this file use 'σ' instead of 'ς' 4 | ο 5 | η 6 | το 7 | οι 8 | τα 9 | του 10 | τησ 11 | των 12 | τον 13 | την 14 | και 15 | κι 16 | κ 17 | ειμαι 18 | εισαι 19 | ειναι 20 | ειμαστε 21 | ειστε 22 | στο 23 | στον 24 | στη 25 | στην 26 | μα 27 | αλλα 28 | απο 29 | για 30 | προσ 31 | με 32 | σε 33 | ωσ 34 | παρα 35 | αντι 36 | κατα 37 | μετα 38 | θα 39 | να 40 | δε 41 | δεν 42 | μη 43 | μην 44 | επι 45 | ενω 46 | εαν 47 | αν 48 | τοτε 49 | που 50 | πωσ 51 | ποιοσ 52 | ποια 53 | ποιο 54 | ποιοι 55 | ποιεσ 56 | ποιων 57 | ποιουσ 58 | αυτοσ 59 | αυτη 60 | αυτο 61 | αυτοι 62 | αυτων 63 | αυτουσ 64 | αυτεσ 65 | αυτα 66 | εκεινοσ 67 | εκεινη 68 | εκεινο 69 | εκεινοι 70 | εκεινεσ 71 | εκεινα 72 | εκεινων 73 | εκεινουσ 74 | οπωσ 75 | ομωσ 76 | ισωσ 77 | οσο 78 | οτι 79 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/stopwords_eu.txt: -------------------------------------------------------------------------------- 1 | # example set of basque stopwords 2 | al 3 | anitz 4 | arabera 5 | asko 6 | baina 7 | bat 8 | batean 9 | batek 10 | bati 11 | batzuei 12 | batzuek 13 | batzuetan 14 | batzuk 15 | bera 16 | beraiek 17 | berau 18 | berauek 19 | bere 20 | berori 21 | beroriek 22 | beste 23 | bezala 24 | da 25 | dago 26 | dira 27 | ditu 28 | du 29 | dute 30 | edo 31 | egin 32 | ere 33 | eta 34 | eurak 35 | ez 36 | gainera 37 | gu 38 | gutxi 39 | guzti 40 | haiei 41 | haiek 42 | haietan 43 | hainbeste 44 | hala 45 | han 46 | handik 47 | hango 48 | hara 49 | hari 50 | hark 51 | hartan 52 | hau 53 | hauei 54 | hauek 55 | hauetan 56 | hemen 57 | hemendik 58 | hemengo 59 | hi 60 | hona 61 | honek 62 | honela 63 | honetan 64 | honi 65 | hor 66 | hori 67 | horiei 68 | horiek 69 | horietan 70 | horko 71 | horra 72 | horrek 73 | horrela 74 | horretan 75 | horri 76 | hortik 77 | hura 78 | izan 79 | ni 80 | noiz 81 | nola 82 | non 83 | nondik 84 | nongo 85 | nor 86 | nora 87 | ze 88 | zein 89 | zen 90 | zenbait 91 | zenbat 92 | zer 93 | zergatik 94 | ziren 95 | zituen 96 | zu 97 | zuek 98 | zuen 99 | zuten 100 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/stopwords_ga.txt: -------------------------------------------------------------------------------- 1 | 2 | a 3 | ach 4 | ag 5 | agus 6 | an 7 | aon 8 | ar 9 | arna 10 | as 11 | b' 12 | ba 13 | beirt 14 | bhúr 15 | caoga 16 | ceathair 17 | ceathrar 18 | chomh 19 | chtó 20 | chuig 21 | chun 22 | cois 23 | céad 24 | cúig 25 | cúigear 26 | d' 27 | daichead 28 | dar 29 | de 30 | deich 31 | deichniúr 32 | den 33 | dhá 34 | do 35 | don 36 | dtí 37 | dá 38 | dár 39 | dó 40 | faoi 41 | faoin 42 | faoina 43 | faoinár 44 | fara 45 | fiche 46 | gach 47 | gan 48 | go 49 | gur 50 | haon 51 | hocht 52 | i 53 | iad 54 | idir 55 | in 56 | ina 57 | ins 58 | inár 59 | is 60 | le 61 | leis 62 | lena 63 | lenár 64 | m' 65 | mar 66 | mo 67 | mé 68 | na 69 | nach 70 | naoi 71 | naonúr 72 | ná 73 | ní 74 | níor 75 | nó 76 | nócha 77 | ocht 78 | ochtar 79 | os 80 | roimh 81 | sa 82 | seacht 83 | seachtar 84 | seachtó 85 | seasca 86 | seisear 87 | siad 88 | sibh 89 | sinn 90 | sna 91 | sé 92 | sí 93 | tar 94 | thar 95 | thú 96 | triúr 97 | trí 98 | trína 99 | trínár 100 | tríocha 101 | tú 102 | um 103 | ár 104 | é 105 | éis 106 | í 107 | ó 108 | ón 109 | óna 110 | ónár 111 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/stopwords_hy.txt: -------------------------------------------------------------------------------- 1 | # example set of Armenian stopwords. 2 | այդ 3 | այլ 4 | այն 5 | այս 6 | դու 7 | դուք 8 | եմ 9 | են 10 | ենք 11 | ես 12 | եք 13 | է 14 | էի 15 | էին 16 | էինք 17 | էիր 18 | էիք 19 | էր 20 | ըստ 21 | թ 22 | ի 23 | ին 24 | իսկ 25 | իր 26 | կամ 27 | համար 28 | հետ 29 | հետո 30 | մենք 31 | մեջ 32 | մի 33 | ն 34 | նա 35 | նաև 36 | նրա 37 | նրանք 38 | որ 39 | որը 40 | որոնք 41 | որպես 42 | ու 43 | ում 44 | պիտի 45 | վրա 46 | և 47 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/lang/userdict_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer) 3 | # 4 | # Add entries to this file in order to override the statistical model in terms 5 | # of segmentation, readings and part-of-speech tags. Notice that entries do 6 | # not have weights since they are always used when found. This is by-design 7 | # in order to maximize ease-of-use. 8 | # 9 | # Entries are defined using the following CSV format: 10 | # , ... , ... , 11 | # 12 | # Notice that a single half-width space separates tokens and readings, and 13 | # that the number tokens and readings must match exactly. 14 | # 15 | # Also notice that multiple entries with the same is undefined. 16 | # 17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines. 18 | # 19 | 20 | # Custom segmentation for kanji compounds 21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞 23 | 24 | # Custom segmentation for compound katakana 25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞 26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞 27 | 28 | # Custom reading for former sumo wrestler 29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/params.json: -------------------------------------------------------------------------------- 1 | {"params":{ 2 | "query":{ 3 | "defType":"edismax", 4 | "q.alt":"*:*", 5 | "rows":"10", 6 | "fl":"*,score", 7 | "":{"v":0} 8 | }, 9 | "facets":{ 10 | "facet":"on", 11 | "facet.mincount": "1", 12 | "":{"v":0} 13 | }, 14 | "velocity":{ 15 | "wt": "velocity", 16 | "v.template":"browse", 17 | "v.layout": "layout", 18 | "":{"v":0} 19 | } 20 | }} 21 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/core.properties: -------------------------------------------------------------------------------- 1 | #Written by CorePropertiesLocator 2 | #Wed Nov 09 09:30:53 UTC 2016 3 | name=demo 4 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/data/index/segments_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/demo/data/index/segments_1 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/demo/data/index/write.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/demo/data/index/write.lock -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/admin-extra.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 25 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/admin-extra.menu-bottom.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/admin-extra.menu-top.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/data-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/dataimport.properties: -------------------------------------------------------------------------------- 1 | #Thu Nov 10 09:30:00 CST 2016 2 | last_index_time=2016-11-10 09\:30\:00 3 | t_rcps_logicarea.last_index_time=2016-11-10 09\:30\:00 4 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/contractions_ca.txt: -------------------------------------------------------------------------------- 1 | # Set of Catalan contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | l 5 | m 6 | n 7 | s 8 | t 9 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/contractions_fr.txt: -------------------------------------------------------------------------------- 1 | # Set of French contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | l 4 | m 5 | t 6 | qu 7 | n 8 | s 9 | j 10 | d 11 | c 12 | jusqu 13 | quoiqu 14 | lorsqu 15 | puisqu 16 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/contractions_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | m 5 | b 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/contractions_it.txt: -------------------------------------------------------------------------------- 1 | # Set of Italian contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | c 4 | l 5 | all 6 | dall 7 | dell 8 | nell 9 | sull 10 | coll 11 | pell 12 | gl 13 | agl 14 | dagl 15 | degl 16 | negl 17 | sugl 18 | un 19 | m 20 | t 21 | s 22 | v 23 | d 24 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/hyphenations_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish hyphenations for StopFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | h 4 | n 5 | t 6 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/stemdict_nl.txt: -------------------------------------------------------------------------------- 1 | # Set of overrides for the dutch stemmer 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | fiets fiets 4 | bromfiets bromfiets 5 | ei eier 6 | kind kinder 7 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/stopwords_el.txt: -------------------------------------------------------------------------------- 1 | # Lucene Greek Stopwords list 2 | # Note: by default this file is used after GreekLowerCaseFilter, 3 | # so when modifying this file use 'σ' instead of 'ς' 4 | ο 5 | η 6 | το 7 | οι 8 | τα 9 | του 10 | τησ 11 | των 12 | τον 13 | την 14 | και 15 | κι 16 | κ 17 | ειμαι 18 | εισαι 19 | ειναι 20 | ειμαστε 21 | ειστε 22 | στο 23 | στον 24 | στη 25 | στην 26 | μα 27 | αλλα 28 | απο 29 | για 30 | προσ 31 | με 32 | σε 33 | ωσ 34 | παρα 35 | αντι 36 | κατα 37 | μετα 38 | θα 39 | να 40 | δε 41 | δεν 42 | μη 43 | μην 44 | επι 45 | ενω 46 | εαν 47 | αν 48 | τοτε 49 | που 50 | πωσ 51 | ποιοσ 52 | ποια 53 | ποιο 54 | ποιοι 55 | ποιεσ 56 | ποιων 57 | ποιουσ 58 | αυτοσ 59 | αυτη 60 | αυτο 61 | αυτοι 62 | αυτων 63 | αυτουσ 64 | αυτεσ 65 | αυτα 66 | εκεινοσ 67 | εκεινη 68 | εκεινο 69 | εκεινοι 70 | εκεινεσ 71 | εκεινα 72 | εκεινων 73 | εκεινουσ 74 | οπωσ 75 | ομωσ 76 | ισωσ 77 | οσο 78 | οτι 79 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/stopwords_eu.txt: -------------------------------------------------------------------------------- 1 | # example set of basque stopwords 2 | al 3 | anitz 4 | arabera 5 | asko 6 | baina 7 | bat 8 | batean 9 | batek 10 | bati 11 | batzuei 12 | batzuek 13 | batzuetan 14 | batzuk 15 | bera 16 | beraiek 17 | berau 18 | berauek 19 | bere 20 | berori 21 | beroriek 22 | beste 23 | bezala 24 | da 25 | dago 26 | dira 27 | ditu 28 | du 29 | dute 30 | edo 31 | egin 32 | ere 33 | eta 34 | eurak 35 | ez 36 | gainera 37 | gu 38 | gutxi 39 | guzti 40 | haiei 41 | haiek 42 | haietan 43 | hainbeste 44 | hala 45 | han 46 | handik 47 | hango 48 | hara 49 | hari 50 | hark 51 | hartan 52 | hau 53 | hauei 54 | hauek 55 | hauetan 56 | hemen 57 | hemendik 58 | hemengo 59 | hi 60 | hona 61 | honek 62 | honela 63 | honetan 64 | honi 65 | hor 66 | hori 67 | horiei 68 | horiek 69 | horietan 70 | horko 71 | horra 72 | horrek 73 | horrela 74 | horretan 75 | horri 76 | hortik 77 | hura 78 | izan 79 | ni 80 | noiz 81 | nola 82 | non 83 | nondik 84 | nongo 85 | nor 86 | nora 87 | ze 88 | zein 89 | zen 90 | zenbait 91 | zenbat 92 | zer 93 | zergatik 94 | ziren 95 | zituen 96 | zu 97 | zuek 98 | zuen 99 | zuten 100 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/stopwords_ga.txt: -------------------------------------------------------------------------------- 1 | 2 | a 3 | ach 4 | ag 5 | agus 6 | an 7 | aon 8 | ar 9 | arna 10 | as 11 | b' 12 | ba 13 | beirt 14 | bhúr 15 | caoga 16 | ceathair 17 | ceathrar 18 | chomh 19 | chtó 20 | chuig 21 | chun 22 | cois 23 | céad 24 | cúig 25 | cúigear 26 | d' 27 | daichead 28 | dar 29 | de 30 | deich 31 | deichniúr 32 | den 33 | dhá 34 | do 35 | don 36 | dtí 37 | dá 38 | dár 39 | dó 40 | faoi 41 | faoin 42 | faoina 43 | faoinár 44 | fara 45 | fiche 46 | gach 47 | gan 48 | go 49 | gur 50 | haon 51 | hocht 52 | i 53 | iad 54 | idir 55 | in 56 | ina 57 | ins 58 | inár 59 | is 60 | le 61 | leis 62 | lena 63 | lenár 64 | m' 65 | mar 66 | mo 67 | mé 68 | na 69 | nach 70 | naoi 71 | naonúr 72 | ná 73 | ní 74 | níor 75 | nó 76 | nócha 77 | ocht 78 | ochtar 79 | os 80 | roimh 81 | sa 82 | seacht 83 | seachtar 84 | seachtó 85 | seasca 86 | seisear 87 | siad 88 | sibh 89 | sinn 90 | sna 91 | sé 92 | sí 93 | tar 94 | thar 95 | thú 96 | triúr 97 | trí 98 | trína 99 | trínár 100 | tríocha 101 | tú 102 | um 103 | ár 104 | é 105 | éis 106 | í 107 | ó 108 | ón 109 | óna 110 | ónár 111 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/stopwords_hy.txt: -------------------------------------------------------------------------------- 1 | # example set of Armenian stopwords. 2 | այդ 3 | այլ 4 | այն 5 | այս 6 | դու 7 | դուք 8 | եմ 9 | են 10 | ենք 11 | ես 12 | եք 13 | է 14 | էի 15 | էին 16 | էինք 17 | էիր 18 | էիք 19 | էր 20 | ըստ 21 | թ 22 | ի 23 | ին 24 | իսկ 25 | իր 26 | կամ 27 | համար 28 | հետ 29 | հետո 30 | մենք 31 | մեջ 32 | մի 33 | ն 34 | նա 35 | նաև 36 | նրա 37 | նրանք 38 | որ 39 | որը 40 | որոնք 41 | որպես 42 | ու 43 | ում 44 | պիտի 45 | վրա 46 | և 47 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/lang/userdict_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer) 3 | # 4 | # Add entries to this file in order to override the statistical model in terms 5 | # of segmentation, readings and part-of-speech tags. Notice that entries do 6 | # not have weights since they are always used when found. This is by-design 7 | # in order to maximize ease-of-use. 8 | # 9 | # Entries are defined using the following CSV format: 10 | # , ... , ... , 11 | # 12 | # Notice that a single half-width space separates tokens and readings, and 13 | # that the number tokens and readings must match exactly. 14 | # 15 | # Also notice that multiple entries with the same is undefined. 16 | # 17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines. 18 | # 19 | 20 | # Custom segmentation for kanji compounds 21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞 23 | 24 | # Custom segmentation for compound katakana 25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞 26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞 27 | 28 | # Custom reading for former sumo wrestler 29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/params.json: -------------------------------------------------------------------------------- 1 | {"params":{ 2 | "query":{ 3 | "defType":"edismax", 4 | "q.alt":"*:*", 5 | "rows":"10", 6 | "fl":"*,score", 7 | "":{"v":0} 8 | }, 9 | "facets":{ 10 | "facet":"on", 11 | "facet.mincount": "1", 12 | "":{"v":0} 13 | }, 14 | "velocity":{ 15 | "wt": "velocity", 16 | "v.template":"browse", 17 | "v.layout": "layout", 18 | "":{"v":0} 19 | } 20 | }} 21 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/core.properties: -------------------------------------------------------------------------------- 1 | #Written by CorePropertiesLocator 2 | #Wed Nov 09 02:21:34 UTC 2016 3 | name=epdc 4 | -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.fdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.fdt -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.fdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.fdx -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.fnm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.fnm -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.nvd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.nvd -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.nvm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.nvm -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e.si: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e.si -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.doc -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.pos: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.pos -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.tim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.tim -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.tip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/_1e_Lucene50_0.tip -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/segments_1g: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/segments_1g -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/index/write.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/index/write.lock -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000041: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000041 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000042: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000042 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000043: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000043 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000044: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000044 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000045: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000045 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000046: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000046 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000047: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000047 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000048: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000048 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000049: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000049 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000050: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterchenhdu/demos/23ad2c9cf8e3efc35cd04cc32e7c079cbbb934f9/solr-in-tomcat/solrhome/epdc/data/tlog/tlog.0000000000000000050 -------------------------------------------------------------------------------- /solr-in-tomcat/solrhome/zoo.cfg: -------------------------------------------------------------------------------- 1 | # The number of milliseconds of each tick 2 | tickTime=2000 3 | # The number of ticks that the initial 4 | # synchronization phase can take 5 | initLimit=10 6 | # The number of ticks that can pass between 7 | # sending a request and getting an acknowledgement 8 | syncLimit=5 9 | 10 | # the directory where the snapshot is stored. 11 | # dataDir=/opt/zookeeper/data 12 | # NOTE: Solr defaults the dataDir to /zoo_data 13 | 14 | # the port at which the clients will connect 15 | # clientPort=2181 16 | # NOTE: Solr sets this based on zkRun / zkHost params 17 | 18 | -------------------------------------------------------------------------------- /wsdemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /wsdemo/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /wsdemo/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /wsdemo/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/common/base/BaseController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: BaseController.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月23日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月23日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package cn.edu.hdu.wsdemo.common.base; 15 | 16 | import cn.edu.hdu.wsdemo.common.log.Logger; 17 | 18 | import com.google.gson.Gson; 19 | 20 | /** 21 | * 22 | * @author Pi Chen 23 | * @version wsdemo V1.0.0, 2016年5月23日 24 | * @see 25 | * @since wsdemo V1.0.0 26 | */ 27 | 28 | public class BaseController 29 | { 30 | public static final String FAILD = "faild"; 31 | public static final String SUCCESS = "success"; 32 | /** 33 | * gson是线程安全的 34 | */ 35 | protected static final Gson gson = new Gson(); 36 | /** 37 | * 日志 38 | */ 39 | protected Logger logger = Logger.getLogger(this.getClass()); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/common/base/BaseService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: BaseService.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月24日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月24日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package cn.edu.hdu.wsdemo.common.base; 15 | 16 | import cn.edu.hdu.wsdemo.common.log.Logger; 17 | 18 | /** 19 | * 20 | * @author Pi Chen 21 | * @version wsdemo V1.0.0, 2016年5月24日 22 | * @see 23 | * @since wsdemo V1.0.0 24 | */ 25 | 26 | public class BaseService 27 | { 28 | protected Logger logger = Logger.getLogger(this.getClass()); 29 | } 30 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/core/exception/SysExceptionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: MyException.java 3 | * Copyright: Copyright 2016-2016 CHENPI All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年11月30日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年11月30日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package cn.edu.hdu.wsdemo.core.exception; 15 | 16 | import javax.servlet.http.HttpServletRequest; 17 | 18 | import org.springframework.web.bind.annotation.ControllerAdvice; 19 | import org.springframework.web.bind.annotation.ExceptionHandler; 20 | import org.springframework.web.bind.annotation.ResponseBody; 21 | 22 | import cn.edu.hdu.wsdemo.common.base.BaseController; 23 | 24 | /** 25 | * @author Pi Chen 26 | * @version wsdemo V1.0.0, 2016年11月30日 27 | * @see 28 | * @since wsdemo V1.0.0 29 | */ 30 | @ControllerAdvice 31 | public class SysExceptionHandler extends BaseController 32 | { 33 | 34 | /** 35 | * 处理controller抛出的异常 36 | * 37 | * @return 38 | */ 39 | @ExceptionHandler(Exception.class) 40 | @ResponseBody 41 | public String handleException(HttpServletRequest request, Exception e) 42 | { 43 | logger.error("Request FAILD, URL = {} ", request.getRequestURI()); 44 | logger.error(e.toString(), e); 45 | return gson.toJson(BaseController.FAILD); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/core/listener/InitialListener.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.wsdemo.core.listener; 2 | 3 | import javax.servlet.ServletContextEvent; 4 | 5 | import org.springframework.web.context.ContextLoaderListener; 6 | 7 | import cn.edu.hdu.wsdemo.common.log.Logger; 8 | 9 | /** 10 | * 11 | * 12 | * @author Pi Chen 13 | * @version wsdemo V1.0.0, 2016年5月23日 14 | * @see 15 | * @since wsdemo V1.0.0 16 | */ 17 | public class InitialListener extends ContextLoaderListener 18 | { 19 | private static Logger logger = Logger.getLogger(InitialListener.class); 20 | 21 | /** 22 | * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent) 23 | * @param arg0 24 | */ 25 | @Override 26 | public void contextDestroyed(ServletContextEvent event) 27 | { 28 | logger.info("start contextDestroyed."); 29 | super.contextDestroyed(event); 30 | 31 | } 32 | 33 | /** 34 | * @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent) 35 | * @param arg0 36 | */ 37 | @Override 38 | public void contextInitialized(ServletContextEvent event) 39 | { 40 | logger.info("start contextInitialized."); 41 | 42 | super.contextInitialized(event); 43 | 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/dao/IUserDao.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.wsdemo.dao; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import cn.edu.hdu.wsdemo.model.User; 7 | 8 | /** 9 | * @author Pi Chen 10 | * @version wsdemo V1.0.0, 2016年8月12日 11 | * @see 12 | * @since wsdemo V1.0.0 13 | */ 14 | 15 | public interface IUserDao 16 | { 17 | public List query(Map param); 18 | 19 | public void saveUser(Map param); 20 | 21 | public void deleteUser(Map param); 22 | } 23 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/service/user/IUserService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * File Name: IUserDao.java 3 | * Copyright: Copyright 2016-2016 hdu All Rights Reserved. 4 | 5 | * Description: 6 | * Author: Pi Chen 7 | * Create Date: 2016年5月24日 8 | 9 | * Modifier: Pi Chen 10 | * Modify Date: 2016年5月24日 11 | * Bugzilla Id: 12 | * Modify Content: 13 | */ 14 | package cn.edu.hdu.wsdemo.service.user; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | import cn.edu.hdu.wsdemo.model.User; 20 | 21 | /** 22 | * 23 | * @author Pi Chen 24 | * @version wsdemo V1.0.0, 2016年5月24日 25 | * @see 26 | * @since wsdemo V1.0.0 27 | */ 28 | 29 | public interface IUserService 30 | { 31 | 32 | public List query(Map param) ; 33 | 34 | public void saveUser(Map param); 35 | 36 | public void deleteUser(Map param); 37 | } 38 | -------------------------------------------------------------------------------- /wsdemo/src/main/java/cn/edu/hdu/wsdemo/wsservice/UserWSService.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hdu.wsdemo.wsservice; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import javax.ws.rs.Consumes; 8 | import javax.ws.rs.GET; 9 | import javax.ws.rs.POST; 10 | import javax.ws.rs.Path; 11 | import javax.ws.rs.PathParam; 12 | import javax.ws.rs.Produces; 13 | import javax.ws.rs.core.MediaType; 14 | 15 | import org.springframework.beans.factory.annotation.Autowired; 16 | 17 | import cn.edu.hdu.wsdemo.model.User; 18 | import cn.edu.hdu.wsdemo.service.user.IUserService; 19 | 20 | @Path("/userwsservice/") 21 | @Consumes(MediaType.APPLICATION_JSON) 22 | @Produces(MediaType.APPLICATION_JSON) 23 | public class UserWSService 24 | { 25 | 26 | @Autowired 27 | private IUserService userService; 28 | 29 | @GET 30 | @Path("/users/{id}/") 31 | public User getUser(@PathParam("id") String id) 32 | { 33 | Map param = new HashMap(); 34 | param.put("id", id); 35 | List userList = userService.query(param); 36 | 37 | return userList.size() > 0 ? userList.get(0) : null; 38 | } 39 | 40 | @POST 41 | @Path("/users/getall") 42 | public List getAllUsers() 43 | { 44 | List userList = userService.query(new HashMap()); 45 | return userList; 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /wsdemo/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | #############################数据源相关配置######################################## 2 | url:jdbc:mysql://10.0.10.53:3306/demo?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 3 | driverClassName:com.mysql.jdbc.Driver 4 | jdbc_username:root 5 | jdbc_password:123456 6 | 7 | filters:stat 8 | 9 | maxActive:20 10 | initialSize:1 11 | maxWait:60000 12 | minIdle:10 13 | maxIdle:15 14 | 15 | timeBetweenEvictionRunsMillis:60000 16 | minEvictableIdleTimeMillis:300000 17 | 18 | validationQuery:SELECT 'x' 19 | testWhileIdle:true 20 | testOnBorrow:false 21 | testOnReturn:false 22 | 23 | maxOpenPreparedStatements:20 24 | removeAbandoned:true 25 | removeAbandonedTimeout:1800 26 | logAbandoned:true 27 | 28 | -------------------------------------------------------------------------------- /wsdemo/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=debug,console,file 2 | 3 | log4j.appender.console=org.apache.log4j.ConsoleAppender 4 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.console.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n 6 | 7 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 8 | log4j.appender.file.DatePattern='-'yyyy-MM-dd 9 | log4j.appender.file.File=./logs/wsdemo.log 10 | log4j.appender.file.Append=true 11 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 12 | log4j.appender.file.layout.ConversionPattern=[%-d{HH:mm:ss}][%p][%c]- %m %n -------------------------------------------------------------------------------- /wsdemo/src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /wsdemo/src/main/resources/mybatis/user/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | id, 7 | name, 8 | address 9 | 10 | 11 | 28 | 29 | 30 | insert into user ( 31 | name, 32 | address 33 | ) values ( 34 | #{name}, 35 | #{address} 36 | ) 37 | 38 | 39 | 40 | delete from user 41 | where 42 | id = #{userId} 43 | 44 | 45 | -------------------------------------------------------------------------------- /wsdemo/src/main/resources/spring/cxf.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /wsdemo/src/main/resources/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wsdemo/src/main/webapp/WEB-INF/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ws test. 6 | 7 | 8 |

这是一个主页.

9 | 10 | 11 | -------------------------------------------------------------------------------- /wsdemo/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | wsdemo 7 | 8 | contextConfigLocation 9 | classpath:spring/spring.xml 10 | 11 | 12 | cn.edu.hdu.wsdemo.core.listener.InitialListener 13 | 14 | 15 | 16 | springMvc 17 | org.springframework.web.servlet.DispatcherServlet 18 | 19 | contextConfigLocation 20 | classpath:spring/spring-mvc.xml 21 | 22 | 1 23 | 24 | 25 | springMvc 26 | *.do 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 30 35 | 36 | -------------------------------------------------------------------------------- /wsdemo/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | wsdemo 6 | 7 | 8 | --------------------------------------------------------------------------------