├── document └── README.md ├── source └── shop │ ├── shop-goods │ ├── shop-goods-web │ │ ├── src │ │ │ └── main │ │ │ │ ├── assembly │ │ │ │ ├── config │ │ │ │ │ ├── system.properties │ │ │ │ │ ├── threadPool.properties │ │ │ │ │ ├── kafka.properties │ │ │ │ │ ├── redis.properties │ │ │ │ │ ├── jdbc.properties │ │ │ │ │ └── log │ │ │ │ │ │ └── log4j2.xml │ │ │ │ └── db │ │ │ │ │ ├── mysql │ │ │ │ │ ├── README │ │ │ │ │ ├── db_user_init.sql │ │ │ │ │ ├── dml.sql │ │ │ │ │ └── create_tables.sql │ │ │ │ │ └── oracle │ │ │ │ │ └── README │ │ │ │ ├── webapp │ │ │ │ ├── common │ │ │ │ │ ├── amazeui │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ └── app.css │ │ │ │ │ │ ├── i │ │ │ │ │ │ │ ├── favicon.png │ │ │ │ │ │ │ ├── app-icon72x72@2x.png │ │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ │ ├── admin-ie.png │ │ │ │ │ │ │ │ ├── adminPage.png │ │ │ │ │ │ │ │ ├── blogPage.png │ │ │ │ │ │ │ │ ├── landing.png │ │ │ │ │ │ │ │ ├── loginPage.png │ │ │ │ │ │ │ │ ├── admin-opera.png │ │ │ │ │ │ │ │ ├── landingPage.png │ │ │ │ │ │ │ │ ├── sidebarPage.png │ │ │ │ │ │ │ │ ├── admin-chrome.png │ │ │ │ │ │ │ │ ├── admin-firefox.png │ │ │ │ │ │ │ │ └── admin-safari.png │ │ │ │ │ │ │ └── startup-640x1096.png │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── js │ │ │ │ │ │ │ └── app.js │ │ │ │ │ │ ├── header.jsp │ │ │ │ │ │ └── footer.jsp │ │ │ │ │ ├── ace-admin │ │ │ │ │ │ ├── image │ │ │ │ │ │ │ ├── logo_bg.jpg │ │ │ │ │ │ │ ├── bg_index.jpg │ │ │ │ │ │ │ ├── top_logo.png │ │ │ │ │ │ │ └── bg_index_h.jpg │ │ │ │ │ │ ├── assets │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ │ │ ├── hue.png │ │ │ │ │ │ │ │ │ ├── alpha.png │ │ │ │ │ │ │ │ │ └── saturation.png │ │ │ │ │ │ │ │ ├── select2.png │ │ │ │ │ │ │ │ ├── select2x2.png │ │ │ │ │ │ │ │ ├── chosen-sprite.png │ │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ │ ├── border.png │ │ │ │ │ │ │ │ │ ├── loading.gif │ │ │ │ │ │ │ │ │ ├── overlay.png │ │ │ │ │ │ │ │ │ ├── pattern.jpg │ │ │ │ │ │ │ │ │ ├── controls.png │ │ │ │ │ │ │ │ │ ├── meteorshower2.jpg │ │ │ │ │ │ │ │ │ └── loading_background.png │ │ │ │ │ │ │ │ ├── chosen-sprite@2x.png │ │ │ │ │ │ │ │ ├── select2-spinner.gif │ │ │ │ │ │ │ │ ├── prettify.min.css │ │ │ │ │ │ │ │ ├── bootstrap-multiselect.min.css │ │ │ │ │ │ │ │ ├── bootstrap-duallistbox.min.css │ │ │ │ │ │ │ │ ├── jquery.gritter.min.css │ │ │ │ │ │ │ │ ├── colorpicker.min.css │ │ │ │ │ │ │ │ ├── jquery-ui.custom.min.css │ │ │ │ │ │ │ │ ├── bootstrap-timepicker.min.css │ │ │ │ │ │ │ │ ├── colorpicker.css │ │ │ │ │ │ │ │ ├── colorbox.min.css │ │ │ │ │ │ │ │ └── bootstrap-datetimepicker.min.css │ │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ │ ├── clear.png │ │ │ │ │ │ │ │ └── loading.gif │ │ │ │ │ │ │ ├── avatars │ │ │ │ │ │ │ │ ├── user.jpg │ │ │ │ │ │ │ │ ├── avatar.png │ │ │ │ │ │ │ │ ├── avatar1.png │ │ │ │ │ │ │ │ ├── avatar2.png │ │ │ │ │ │ │ │ ├── avatar3.png │ │ │ │ │ │ │ │ ├── avatar4.png │ │ │ │ │ │ │ │ ├── avatar5.png │ │ │ │ │ │ │ │ └── profile-pic.jpg │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ ├── email1.png │ │ │ │ │ │ │ │ ├── email2.png │ │ │ │ │ │ │ │ ├── email3.png │ │ │ │ │ │ │ │ ├── email4.png │ │ │ │ │ │ │ │ ├── spritemap.png │ │ │ │ │ │ │ │ ├── spritemap@2x.png │ │ │ │ │ │ │ │ └── gallery │ │ │ │ │ │ │ │ │ ├── image-1.jpg │ │ │ │ │ │ │ │ │ ├── image-2.jpg │ │ │ │ │ │ │ │ │ ├── image-3.jpg │ │ │ │ │ │ │ │ │ ├── image-4.jpg │ │ │ │ │ │ │ │ │ ├── image-5.jpg │ │ │ │ │ │ │ │ │ ├── image-6.jpg │ │ │ │ │ │ │ │ │ ├── thumb-1.jpg │ │ │ │ │ │ │ │ │ ├── thumb-2.jpg │ │ │ │ │ │ │ │ │ ├── thumb-3.jpg │ │ │ │ │ │ │ │ │ ├── thumb-4.jpg │ │ │ │ │ │ │ │ │ ├── thumb-5.jpg │ │ │ │ │ │ │ │ │ └── thumb-6.jpg │ │ │ │ │ │ │ ├── swf │ │ │ │ │ │ │ │ └── copy_csv_xls_pdf.swf │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ │ └── fonts.googleapis.com.css │ │ │ │ │ │ │ ├── font-awesome │ │ │ │ │ │ │ │ ├── 4.1.0 │ │ │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ │ │ │ │ └── fontawesome-webfont.woff │ │ │ │ │ │ │ │ └── 4.2.0 │ │ │ │ │ │ │ │ │ └── fonts │ │ │ │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ │ │ │ └── fontawesome-webfont.woff │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ │ ├── jquery.ui.touch-punch.min.js │ │ │ │ │ │ │ │ ├── jquery.hotkeys.min.js │ │ │ │ │ │ │ │ ├── jquery.flot.resize.min.js │ │ │ │ │ │ │ │ ├── jquery.inputlimiter.1.3.1.min.js │ │ │ │ │ │ │ │ ├── html5shiv.min.js │ │ │ │ │ │ │ │ ├── jquery.autosize.min.js │ │ │ │ │ │ │ │ ├── bootstrap-tag.min.js │ │ │ │ │ │ │ │ ├── bootstrap-wysiwyg.min.js │ │ │ │ │ │ │ │ ├── jquery.dataTables.bootstrap.min.js │ │ │ │ │ │ │ │ ├── jquery.easypiechart.min.js │ │ │ │ │ │ │ │ ├── jquery.maskedinput.min.js │ │ │ │ │ │ │ │ ├── spin.min.js │ │ │ │ │ │ │ │ ├── jquery.gritter.min.js │ │ │ │ │ │ │ │ ├── respond.min.js │ │ │ │ │ │ │ │ └── jquery.slimscroll.min.js │ │ │ │ │ │ ├── footer.shtml │ │ │ │ │ │ ├── header.shtml │ │ │ │ │ │ └── css │ │ │ │ │ │ │ └── index.css │ │ │ │ │ └── base_params.jsp │ │ │ │ ├── pages │ │ │ │ │ ├── main.shtml │ │ │ │ │ ├── index.jsp │ │ │ │ │ ├── error │ │ │ │ │ │ ├── 405.jsp │ │ │ │ │ │ ├── 500.jsp │ │ │ │ │ │ └── 404.jsp │ │ │ │ │ ├── shop │ │ │ │ │ │ ├── js │ │ │ │ │ │ │ └── search.js │ │ │ │ │ │ └── search.shtml │ │ │ │ │ └── common │ │ │ │ │ │ └── common.js │ │ │ │ ├── WEB-INF │ │ │ │ │ └── web.xml │ │ │ │ └── login.shtml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── wxx │ │ │ │ │ └── shop │ │ │ │ │ ├── controller │ │ │ │ │ ├── IncomeLogController.java │ │ │ │ │ ├── PriceChangeLogController.java │ │ │ │ │ ├── MainController.java │ │ │ │ │ ├── UserController.java │ │ │ │ │ └── GoodsController.java │ │ │ │ │ ├── filter │ │ │ │ │ ├── LoginFilter.java │ │ │ │ │ └── QueryGoodsNameInterceptor.java │ │ │ │ │ └── listener │ │ │ │ │ └── DefaultInitListener.java │ │ │ │ └── resources │ │ │ │ ├── spring-threadPool.xml │ │ │ │ ├── spring-mvc.xml │ │ │ │ ├── mybatis-config.xml │ │ │ │ ├── generatorConfig.xml │ │ │ │ ├── kafka │ │ │ │ ├── consumer.xml │ │ │ │ └── producer.xml │ │ │ │ ├── spring-redis.xml │ │ │ │ └── applicationContext.xml │ │ └── pom.xml │ ├── shop-goods-client │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── wxx │ │ │ │ └── shop │ │ │ │ ├── service │ │ │ │ ├── UserService.java │ │ │ │ ├── IncomeLogService.java │ │ │ │ ├── PriceChangeLogService.java │ │ │ │ └── GoodsService.java │ │ │ │ └── model │ │ │ │ ├── PriceChangeLog.java │ │ │ │ ├── User.java │ │ │ │ ├── Goods.java │ │ │ │ └── IncomeLog.java │ │ └── pom.xml │ ├── shop-goods-service │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── wxx │ │ │ │ └── shop │ │ │ │ ├── constenum │ │ │ │ └── GoodsChannelEnum.java │ │ │ │ ├── service │ │ │ │ └── impl │ │ │ │ │ └── GoodsServiceImpl.java │ │ │ │ └── mq │ │ │ │ └── GoodsConsumer.java │ │ └── pom.xml │ ├── shop-goods-dao │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── wxx │ │ │ │ │ └── shop │ │ │ │ │ └── dao │ │ │ │ │ ├── IncomeLogDao.java │ │ │ │ │ ├── PriceChangeLogDao.java │ │ │ │ │ ├── UserDao.java │ │ │ │ │ └── GoodsDao.java │ │ │ │ └── resources │ │ │ │ └── com │ │ │ │ └── wxx │ │ │ │ └── shop │ │ │ │ └── mapper │ │ │ │ ├── oracle │ │ │ │ └── GoodsDao.xml │ │ │ │ └── mysql │ │ │ │ └── GoodsDao.xml │ │ └── pom.xml │ └── pom.xml │ ├── ReleaseNotes │ ├── Redis集群部署.docx │ └── SHOP_Kernel_ReleaseNote.docx │ ├── bin │ ├── goods_stop.sh │ ├── goods_start.bat │ └── goods_start.sh │ ├── build.bat │ ├── shop-cache │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── wxx │ │ │ └── shop │ │ │ └── cache │ │ │ ├── cluster │ │ │ ├── RedisClusterService.java │ │ │ └── impl │ │ │ │ └── RedisClusterServiceImpl.java │ │ │ └── RedisUtil.java │ └── pom.xml │ ├── shop-mq │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── wxx │ │ │ └── shop │ │ │ └── kafka │ │ │ ├── KafkaConsumer.java │ │ │ └── demo │ │ │ ├── KafkaConsumer.java │ │ │ └── KafkaProducer.java │ └── pom.xml │ ├── shop-common │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── wxx │ │ └── shop │ │ └── common │ │ └── WebResult.java │ └── release.xml ├── .gitignore └── README.md /document/README.md: -------------------------------------------------------------------------------- 1 | # ssm 2 | Spring + Spring MVC + Mybatis + maven的文档说明 3 | 初始化 4 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/config/system.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /source/springmvc/.classpath 2 | /source/springmvc/target 3 | /source/springmvc/bin 4 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/css/app.css: -------------------------------------------------------------------------------- 1 | /* Write your styles */ -------------------------------------------------------------------------------- /source/shop/ReleaseNotes/Redis集群部署.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/ReleaseNotes/Redis集群部署.docx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ssm 2 | 基础框架Spring + Spring MVC + Mybatis
3 | 分布式框架dubbo
4 | 消息系统kafka
5 | 缓存redis
6 | 构建工具maven
7 | -------------------------------------------------------------------------------- /source/shop/bin/goods_stop.sh: -------------------------------------------------------------------------------- 1 | ps -ef | grep com.aspire.jshdc.pay.dubbo.PayApplicationDubbo | grep -v grep | awk '{print $2}' | xargs kill -9 2 | -------------------------------------------------------------------------------- /source/shop/ReleaseNotes/SHOP_Kernel_ReleaseNote.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/ReleaseNotes/SHOP_Kernel_ReleaseNote.docx -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/db/mysql/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/assembly/db/mysql/README -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/db/oracle/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/assembly/db/oracle/README -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/config/threadPool.properties: -------------------------------------------------------------------------------- 1 | threadPool.corePoolSize=5 2 | threadPool.maxPoolSize=50 3 | threadPool.keepAliveSeconds=30 4 | threadPool.queueCapacity=200 -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/config/kafka.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/assembly/config/kafka.properties -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/config/redis.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/assembly/config/redis.properties -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/favicon.png -------------------------------------------------------------------------------- /source/shop/build.bat: -------------------------------------------------------------------------------- 1 | set RELEASE_HOME=E:\deploy 2 | mvn -Dmaven.test.skip=true -Dmaven.compile.fork=true clean package assembly:assembly -U 3 | echo "deploying..." 4 | xcopy /y /i target\hdc-all\*.* %RELEASE_HOME%\ /s /e 5 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/logo_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/logo_bg.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/bg_index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/bg_index.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/top_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/top_logo.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/main.shtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/hue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/hue.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/img/clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/img/clear.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/img/loading.gif -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/bg_index_h.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/image/bg_index_h.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/app-icon72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/app-icon72x72@2x.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-ie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-ie.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/adminPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/adminPage.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/blogPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/blogPage.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/landing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/landing.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/loginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/loginPage.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/startup-640x1096.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/startup-640x1096.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/user.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/alpha.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2x2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2x2.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email1.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email2.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email3.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/email4.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-opera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-opera.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/landingPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/landingPage.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/sidebarPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/sidebarPage.png -------------------------------------------------------------------------------- /source/shop/bin/goods_start.bat: -------------------------------------------------------------------------------- 1 | set classpath=%classpath%;./config;./lib/*;./lib/thirdparty/*; 2 | java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=18890 -Xmn128m -Xms1024m -Xmx1024m com.aspire.jshdc.pay.dubbo.PayApplicationDubbo 3 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar1.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar2.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar3.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar4.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/avatar5.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/spritemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/spritemap.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-chrome.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-firefox.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/i/examples/admin-safari.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/chosen-sprite.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/border.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/loading.gif -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/overlay.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/pattern.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/pattern.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/saturation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/img/saturation.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/profile-pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/avatars/profile-pic.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/chosen-sprite@2x.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/controls.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2-spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/select2-spinner.gif -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/spritemap@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/spritemap@2x.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/swf/copy_csv_xls_pdf.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/swf/copy_csv_xls_pdf.swf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-1.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-2.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-3.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-4.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-5.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/image-6.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-1.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-2.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-3.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-4.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-5.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/images/gallery/thumb-6.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/meteorshower2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/meteorshower2.jpg -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.service; 2 | 3 | import com.wxx.shop.model.User; 4 | 5 | 6 | public interface UserService { 7 | 8 | public int insertUser(User user); 9 | } 10 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/loading_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/images/loading_background.png -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /source/shop/bin/goods_start.sh: -------------------------------------------------------------------------------- 1 | export CLASSPATH=$CLASSPATH:./config:./lib/*:./lib/thirdparty/* 2 | >nohup.out 3 | nohup java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=18890 -Xmn128m -Xms1024m -Xmx1024m com.aspire.jshdc.pay.dubbo.PayApplicationDubbo & 4 | tail -f nohup.out 5 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.1.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangxiaoxian/ssm/HEAD/source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/font-awesome/4.2.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/db/mysql/db_user_init.sql: -------------------------------------------------------------------------------- 1 | create user 'wxx_store' @ 'localhost' IDENTIFIED by 'wxx_store'; 2 | 3 | -- mysql中schema和database是一样的,所以下面两句话是相同的 4 | -- create schema wxx_store; 5 | create database wxx_store; 6 | 7 | grant privileges all on wxx_store.* to 'wxx_store' @'localhost'; -------------------------------------------------------------------------------- /source/shop/shop-cache/src/main/java/com/wxx/shop/cache/cluster/RedisClusterService.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.cache.cluster; 2 | 3 | import redis.clients.jedis.JedisCluster; 4 | 5 | /** 6 | * redis集群客户端 7 | * Created by wangxiaoxian on 2017/4/20. 8 | */ 9 | public interface RedisClusterService { 10 | JedisCluster getJedisCluster(); 11 | } 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/base_params.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-service/src/main/java/com/wxx/shop/constenum/GoodsChannelEnum.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.constenum; 2 | 3 | /** 4 | * Created by wangxiaoxian on 2017/4/15. 5 | */ 6 | public interface GoodsChannelEnum { 7 | 8 | String GOODS_CHANNEL_PRODUCER = "inputToKafka"; 9 | String GOODS_CHANNEL_CONSUMER = "inputFromKafka"; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/service/IncomeLogService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.service 4 | * IncomeLogService.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:53:47 7 | */ 8 | package com.wxx.shop.service; 9 | 10 | /** 11 | * 12 | * IncomeLogService 13 | */ 14 | public class IncomeLogService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/service/PriceChangeLogService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.service 4 | * PriceChangeLogService.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:54:06 7 | */ 8 | package com.wxx.shop.service; 9 | 10 | /** 11 | * 12 | * PriceChangeLogService 13 | */ 14 | public class PriceChangeLogService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/controller/IncomeLogController.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.controller 4 | * IncomeLogController.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:50:14 7 | */ 8 | package com.wxx.shop.controller; 9 | 10 | /** 11 | * 12 | * IncomeLogController 13 | */ 14 | public class IncomeLogController { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/controller/PriceChangeLogController.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.controller 4 | * PriceChangeLogController.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:51:06 7 | */ 8 | package com.wxx.shop.controller; 9 | 10 | /** 11 | * 12 | * PriceChangeLogController 13 | */ 14 | public class PriceChangeLogController { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/java/com/wxx/shop/dao/IncomeLogDao.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.dao 4 | * IncomeLogDao.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:51:39 7 | */ 8 | package com.wxx.shop.dao; 9 | 10 | import org.springframework.stereotype.Repository; 11 | 12 | /** 13 | * 14 | * IncomeLogDao 15 | */ 16 | @Repository 17 | public interface IncomeLogDao { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/java/com/wxx/shop/dao/PriceChangeLogDao.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.dao 4 | * PriceChangeLogDao.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:51:56 7 | */ 8 | package com.wxx.shop.dao; 9 | 10 | import org.springframework.stereotype.Repository; 11 | 12 | /** 13 | * 14 | * PriceChangeLogDao 15 | */ 16 | @Repository 17 | public interface PriceChangeLogDao { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

欢迎你!!!

11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | @RequestMapping("/") 8 | public class MainController { 9 | 10 | @RequestMapping("index") 11 | public String index(){ 12 | System.out.println(111); 13 | return "index.jsp"; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/js/app.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 'use strict'; 3 | 4 | $(function() { 5 | var $fullText = $('.admin-fullText'); 6 | $('#admin-fullscreen').on('click', function() { 7 | $.AMUI.fullscreen.toggle(); 8 | }); 9 | 10 | $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() { 11 | $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏'); 12 | }); 13 | }); 14 | })(jQuery); 15 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/error/405.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

405错误!资源访问被禁止!!你需要一定的权限来进行此访问操作!!!

11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/error/500.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

500内部错误 — 因为意外情况,服务器不能完成请求!!!请稍后重新尝试。

11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/error/404.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

(╯‵□′)╯︵┻━┻ 404错误!该路径不正确或资源不存在,请确认后重新输入地址!!!

11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop-goods 6 | 1.0.0 7 | 8 | shop-goods-client 9 | jar 10 | -------------------------------------------------------------------------------- /source/shop/shop-mq/src/main/java/com/wxx/shop/kafka/KafkaConsumer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Aspire Tech,Inc. All rights reserved. 3 | */ 4 | package com.wxx.shop.kafka; 5 | 6 | 7 | import java.util.concurrent.ExecutorService; 8 | import java.util.concurrent.Executors; 9 | 10 | /** 11 | * kafka消费者 12 | * 13 | * @author wangxiaoxian 14 | * @version $v:1.0.0, $time:2017-04-13, $id:KafkaConsumer.java, Exp $ 15 | */ 16 | public interface KafkaConsumer { 17 | 18 | void init(); 19 | 20 | void destroy(); 21 | } -------------------------------------------------------------------------------- /source/shop/shop-mq/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop 6 | 1.0.0 7 | 8 | shop-mq 9 | jar 10 | 11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-cache/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop 6 | 1.0.0 7 | 8 | shop-cache 9 | jar 10 | 11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-common/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop 6 | 1.0.0 7 | 8 | shop-common 9 | jar 10 | 11 | 12 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/service/GoodsService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.service 4 | * GoodsService.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:53:03 7 | */ 8 | package com.wxx.shop.service; 9 | 10 | import com.wxx.shop.model.Goods; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | * 16 | * GoodsService 17 | */ 18 | public interface GoodsService { 19 | 20 | List queryPage(Goods condition); 21 | 22 | List queryByName(String goodsSearchName); 23 | } 24 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/prettify.min.css: -------------------------------------------------------------------------------- 1 | .com{color:#93a1a1}.lit{color:#195f91}.pun,.opn,.clo{color:#93a1a1}.fun{color:#dc322f}.str,.atv{color:#D14}.kwd,.prettyprint .tag{color:#1e347b}.typ,.atn,.dec,.var{color:teal}.pln{color:#48484c}.prettyprint{padding:8px;background-color:#f7f7f9;border:1px solid #e1e1e8}.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0}ol.linenums{margin:0 0 0 33px}ol.linenums li{padding-left:12px;color:#bebec5;line-height:20px;text-shadow:0 1px 0 #fff} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/header.jsp: -------------------------------------------------------------------------------- 1 | <%@ include file="../base_params.jsp"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/fonts/fonts.googleapis.com.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Open Sans'; 3 | font-style: normal; 4 | font-weight: 300; 5 | src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v10/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff'); 6 | } 7 | @font-face { 8 | font-family: 'Open Sans'; 9 | font-style: normal; 10 | font-weight: 400; 11 | src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); 12 | } 13 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/java/com/wxx/shop/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.dao 4 | * UserDao.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:48:44 7 | */ 8 | package com.wxx.shop.dao; 9 | 10 | import com.wxx.shop.model.User; 11 | import org.apache.ibatis.annotations.Param; 12 | 13 | import org.springframework.stereotype.Repository; 14 | 15 | /** 16 | * 17 | * UserDao 18 | */ 19 | @Repository 20 | public interface UserDao { 21 | 22 | /** 23 | * 24 | * @param userInfo 25 | * @return 26 | * User 27 | */ 28 | User getUser(@Param("userInfo") User userInfo); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/java/com/wxx/shop/dao/GoodsDao.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.dao 4 | * GoodsDao.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:51:23 7 | */ 8 | package com.wxx.shop.dao; 9 | 10 | import java.util.List; 11 | 12 | import com.wxx.shop.model.Goods; 13 | import org.apache.ibatis.annotations.Param; 14 | import org.springframework.stereotype.Repository; 15 | 16 | /** 17 | * 18 | * GoodsDao 19 | */ 20 | @Repository 21 | public interface GoodsDao { 22 | 23 | List queryPage(@Param("param") Goods param); 24 | 25 | List queryByName(@Param("goodsSearchName")String goodsSearchName); 26 | 27 | int insert(Goods goods); 28 | } 29 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop-goods 6 | 1.0.0 7 | 8 | shop-goods-dao 9 | jar 10 | 11 | 12 | com.wxx.shop 13 | shop-goods-client 14 | 1.0.0 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/shop/shop-common/src/main/java/com/wxx/shop/common/WebResult.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.common; 2 | 3 | /** 4 | * Created by wangxiaoxian on 2017/4/7. 5 | */ 6 | public class WebResult { 7 | private Integer code = 200; 8 | private String msg; 9 | private Object data; 10 | 11 | public Integer getCode() { 12 | return code; 13 | } 14 | 15 | public void setCode(Integer code) { 16 | this.code = code; 17 | } 18 | 19 | public String getMsg() { 20 | return msg; 21 | } 22 | 23 | public void setMsg(String msg) { 24 | this.msg = msg; 25 | } 26 | 27 | public Object getData() { 28 | return data; 29 | } 30 | 31 | public void setData(Object data) { 32 | this.data = data; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop-goods 6 | 1.0.0 7 | 8 | shop-goods-web 9 | war 10 | 11 | 12 | 13 | com.wxx.shop 14 | shop-goods-service 15 | 1.0.0 16 | 17 | 18 | 19 | SHOP 20 | 21 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/footer.shtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/controller/UserController.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.controller; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | import javax.servlet.http.HttpSession; 7 | 8 | import com.wxx.shop.model.User; 9 | import com.wxx.shop.service.UserService; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Controller; 12 | import org.springframework.web.bind.annotation.RequestMapping; 13 | import org.springframework.web.bind.annotation.ResponseBody; 14 | 15 | @Controller 16 | @RequestMapping("/user") 17 | public class UserController { 18 | 19 | //@Autowired 20 | //private UserService userService; 21 | 22 | @RequestMapping("index") 23 | public @ResponseBody String index(){ 24 | System.out.println(111); 25 | return "hello"; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /source/shop/shop-goods/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.wxx.shop 6 | shop 7 | 1.0.0 8 | 9 | shop-goods 10 | pom 11 | 12 | 13 | shop-goods-service 14 | shop-goods-client 15 | shop-goods-dao 16 | shop-goods-web 17 | 18 | 19 | shop-goods 20 | http://maven.apache.org 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/header.shtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /source/shop/shop-mq/src/main/java/com/wxx/shop/kafka/demo/KafkaConsumer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Aspire Tech,Inc. All rights reserved. 3 | */ 4 | package com.wxx.shop.kafka.demo; 5 | 6 | import org.springframework.context.ApplicationContext; 7 | import org.springframework.context.support.ClassPathXmlApplicationContext; 8 | import org.springframework.integration.channel.QueueChannel; 9 | import org.springframework.messaging.Message; 10 | 11 | /** 12 | * kafka消费者 13 | * 14 | * @author wangxiaoxian 15 | * @version $v:1.0.0, $time:2017-04-13, $id:KafkaConsumer.java, Exp $ 16 | */ 17 | public class KafkaConsumer { 18 | public static void main(String[] args) { 19 | ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); 20 | QueueChannel queueChannel = (QueueChannel) context.getBean("inputFromKafka"); 21 | Message msg = null; 22 | while ((msg = queueChannel.receive(-1)) != null) { 23 | String map = (String) msg.getPayload(); 24 | System.out.println(map); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/amazeui/footer.jsp: -------------------------------------------------------------------------------- 1 | <%@ include file="../base_params.jsp"%> 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/spring-threadPool.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/bootstrap-multiselect.min.css: -------------------------------------------------------------------------------- 1 | .multiselect-container{position:absolute;list-style-type:none;margin:0;padding:0}.multiselect-container .input-group{margin:5px}.multiselect-container>li{padding:0}.multiselect-container>li>a.multiselect-all label{font-weight:700}.multiselect-container>li.multiselect-group label{margin:0;padding:3px 20px;height:100%;font-weight:700}.multiselect-container>li.multiselect-group-clickable label{cursor:pointer}.multiselect-container>li>a{padding:0}.multiselect-container>li>a>label{margin:0;height:100%;cursor:pointer;font-weight:400;padding:3px 20px 3px 40px}.multiselect-container>li>a>label.radio,.multiselect-container>li>a>label.checkbox{margin:0}.multiselect-container>li>a>label>input[type=checkbox]{margin-bottom:5px}.filter .btn{padding:6px 3px}.btn-group>.btn-group:nth-child(2)>.multiselect.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.form-inline .multiselect-container label.checkbox,.form-inline .multiselect-container label.radio{padding:3px 20px 3px 40px}.form-inline .multiselect-container li a label.checkbox input[type=checkbox],.form-inline .multiselect-container li a label.radio input[type=radio]{margin-left:-20px;margin-right:0} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/shop/js/search.js: -------------------------------------------------------------------------------- 1 | define(function (require, exports, module) { 2 | var common = require("../../common/common"); 3 | var attachment = require("../../common/attachment"); 4 | 5 | var _this; 6 | 7 | module.exports = { 8 | init:function() { 9 | _this = this; 10 | 11 | _this.bindAutoComplete(); 12 | }, 13 | bindAutoComplete : function() { 14 | $("#main_form input[name='goodsSearchName']").autocomplete({ 15 | minLength: 1, 16 | source: function(request, response) { 17 | common.sendAjax({ 18 | "url": root + '/goods/queryByName.ajax', 19 | "data": {"goodsSearchName" : request.term}, 20 | "success": function(resp) { 21 | response($.map(resp.data, function( item ) { 22 | return { 23 | label: item, 24 | value: item 25 | } 26 | })); 27 | } 28 | }); 29 | } 30 | }); 31 | } 32 | }; 33 | }); 34 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/config/jdbc.properties: -------------------------------------------------------------------------------- 1 | db.type=mysql 2 | 3 | #oracle jdbc 4 | #db.driverClassName=oracle.jdbc.driver.OracleDriver 5 | #db.url=jdbc:oracle:thin:@10.1.4.61:1521:yx10g 6 | #db.username=wapwxcs 7 | #db.password=wapwxcs 8 | 9 | #mysql jdbc 10 | db.connectorJarPath=/Users/wangxiaoxian/.m2/repository/mysql/mysql-connector-java/5.1.37/mysql-connector-java-5.1.37.jar 11 | db.driverClassName=com.mysql.jdbc.Driver 12 | #Chinese encoding problem of mybatis'access to mysql 13 | db.url=jdbc:mysql://localhost:3306/shop?characterEncoding\=utf8&characterSetResults\=utf8&useUnicode\=false&&zeroDateTimeBehavior\=convertToNull 14 | db.username=shop 15 | db.password=shop 16 | 17 | #Connection pool config 18 | #\u8fde\u63a5\u6c60\u6700\u5927\u4f7f\u7528\u8fde\u63a5\u6570 19 | pool.maxActive=20 20 | #\u521d\u59cb\u5316\u8fde\u63a5\u5927\u5c0f 21 | pool.initialSize=1 22 | #\u83b7\u53d6\u8fde\u63a5\u6700\u5927\u7b49\u5f85\u65f6\u95f4 23 | pool.maxWait=60000 24 | #\u8fde\u63a5\u6c60\u6700\u5927\u7a7a\u95f2\u6570 25 | pool.maxIdle=20 26 | #\u8fde\u63a5\u6c60\u6700\u5c0f\u7a7a\u95f2\u6570 27 | pool.minIdle=3 28 | #\u81ea\u52a8\u6e05\u9664\u65e0\u7528\u8fde\u63a5 29 | pool.removeAbandoned=true 30 | #\u6e05\u9664\u65e0\u7528\u8fde\u63a5\u7684\u7b49\u5f85\u65f6\u95f4 31 | pool.removeAbandonedTimeout=180 32 | 33 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | com.wxx.shop 5 | shop-goods 6 | 1.0.0 7 | 8 | shop-goods-service 9 | jar 10 | 11 | 12 | 13 | com.wxx.shop 14 | shop-goods-client 15 | 1.0.0 16 | 17 | 18 | com.wxx.shop 19 | shop-goods-dao 20 | 1.0.0 21 | 22 | 23 | com.wxx.shop 24 | shop-common 25 | 1.0.0 26 | 27 | 28 | com.wxx.shop 29 | shop-cache 30 | 1.0.0 31 | 32 | 33 | com.wxx.shop 34 | shop-mq 35 | 1.0.0 36 | 37 | 38 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/jquery.ui.touch-punch.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery UI Touch Punch 0.2.3 3 | * 4 | * Copyright 2011–2014, Dave Furfero 5 | * Dual licensed under the MIT or GPL Version 2 licenses. 6 | * 7 | * Depends: 8 | * jquery.ui.widget.js 9 | * jquery.ui.mouse.js 10 | */ 11 | !function(a){function b(a,b,c){if(!(a.originalEvent.touches.length>1)){c!==!1&&a.preventDefault();var d=a.originalEvent.changedTouches[0],e=document.createEvent("MouseEvents");e.initMouseEvent(b,!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(e)}}if(a.support.touch="ontouchend"in document,a.support.touch){var c,d=a.ui.mouse.prototype,e=d._mouseInit,f=d._mouseDestroy;d._touchStart=function(a){var d=this;!c&&d._mouseCapture(a.originalEvent.changedTouches[0])&&(c=!0,d._touchMoved=!1,b(a,"mouseover",!1),b(a,"mousemove",!1),b(a,"mousedown",!1))},d._touchMove=function(a){c&&(this._touchMoved=!0,b(a,"mousemove"))},d._touchEnd=function(a){c&&(b(a,"mouseup"),b(a,"mouseout"),this._touchMoved||b(a,"click"),c=!1)},d._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),e.call(b)},d._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),f.call(b)}}}(jQuery); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/model/PriceChangeLog.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.model 4 | * PriceChangeLog.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:52:43 7 | */ 8 | package com.wxx.shop.model; 9 | 10 | /** 11 | * 12 | * PriceChangeLog 13 | */ 14 | public class PriceChangeLog { 15 | 16 | private String priceChangeLogId; 17 | private String goodsId; 18 | private String price; 19 | private String createTime; 20 | private String updateTime; 21 | private String remark; 22 | 23 | public String getPriceChangeLogId() { 24 | return priceChangeLogId; 25 | } 26 | public void setPriceChangeLogId(String priceChangeLogId) { 27 | this.priceChangeLogId = priceChangeLogId; 28 | } 29 | public String getGoodsId() { 30 | return goodsId; 31 | } 32 | public void setGoodsId(String goodsId) { 33 | this.goodsId = goodsId; 34 | } 35 | public String getPrice() { 36 | return price; 37 | } 38 | public void setPrice(String price) { 39 | this.price = price; 40 | } 41 | public String getCreateTime() { 42 | return createTime; 43 | } 44 | public void setCreateTime(String createTime) { 45 | this.createTime = createTime; 46 | } 47 | public String getUpdateTime() { 48 | return updateTime; 49 | } 50 | public void setUpdateTime(String updateTime) { 51 | this.updateTime = updateTime; 52 | } 53 | public String getRemark() { 54 | return remark; 55 | } 56 | public void setRemark(String remark) { 57 | this.remark = remark; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/model/User.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.model 4 | * User.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:48:35 7 | */ 8 | package com.wxx.shop.model; 9 | 10 | import java.sql.Date; 11 | 12 | /** 13 | * 14 | * User 15 | */ 16 | public class User { 17 | 18 | private String userId; 19 | private String username; 20 | private String password; 21 | private String nickname; 22 | private Date createTime; 23 | private Date updateTime; 24 | 25 | public String getUserId() { 26 | return userId; 27 | } 28 | public void setUserId(String userId) { 29 | this.userId = userId; 30 | } 31 | public String getUsername() { 32 | return username; 33 | } 34 | public void setUsername(String username) { 35 | this.username = username; 36 | } 37 | public String getPassword() { 38 | return password; 39 | } 40 | public void setPassword(String password) { 41 | this.password = password; 42 | } 43 | public String getNickname() { 44 | return nickname; 45 | } 46 | public void setNickname(String nickname) { 47 | this.nickname = nickname; 48 | } 49 | public Date getCreateTime() { 50 | return createTime; 51 | } 52 | public void setCreateTime(Date createTime) { 53 | this.createTime = createTime; 54 | } 55 | public Date getUpdateTime() { 56 | return updateTime; 57 | } 58 | public void setUpdateTime(Date updateTime) { 59 | this.updateTime = updateTime; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/bootstrap-duallistbox.min.css: -------------------------------------------------------------------------------- 1 | .bootstrap-duallistbox-container .buttons{width:100%;margin-bottom:-1px}.bootstrap-duallistbox-container label{display:block}.bootstrap-duallistbox-container .info{display:inline-block;margin-bottom:5px;font-size:11px}.bootstrap-duallistbox-container .clear1,.bootstrap-duallistbox-container .clear2{display:none;font-size:10px}.bootstrap-duallistbox-container .box1.filtered .clear1,.bootstrap-duallistbox-container .box2.filtered .clear2{display:inline-block}.bootstrap-duallistbox-container .move,.bootstrap-duallistbox-container .remove{width:60%}.bootstrap-duallistbox-container .btn-group .btn{border-bottom-left-radius:0;border-bottom-right-radius:0}.bootstrap-duallistbox-container select{border-top-left-radius:0;border-top-right-radius:0}.bootstrap-duallistbox-container .moveall,.bootstrap-duallistbox-container .removeall{width:40%}.bootstrap-duallistbox-container.bs2compatible .btn-group>.btn+.btn{margin-left:0}.bootstrap-duallistbox-container select{width:100%;height:300px;padding:0}.bootstrap-duallistbox-container .filter{display:inline-block;width:100%;height:31px;margin:0 0 5px 0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-duallistbox-container .filter.placeholder{color:#aaa}.bootstrap-duallistbox-container.moveonselect .move,.bootstrap-duallistbox-container.moveonselect .remove{display:none}.bootstrap-duallistbox-container.moveonselect .moveall,.bootstrap-duallistbox-container.moveonselect .removeall{width:100%} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/css/index.css: -------------------------------------------------------------------------------- 1 | .index-title h3 { 2 | color: #555; 3 | text-shadow: 0 1px 0 #fff; 4 | font-family: "yahei","Microsoft Yahei","微软雅黑"; 5 | font-size: 24px; 6 | } 7 | .index-login-bg { 8 | margin: 10px; 9 | overflow: hidden; 10 | width: 400px; 11 | float: right; 12 | margin-right: 15%; 13 | } 14 | .index-login-img { 15 | background-image: url(../image/bg_index.jpg); 16 | background-repeat: no-repeat; 17 | background-position: 25% 4px; 18 | height: 417px; 19 | } 20 | .index-logobg { 21 | background-image: url(../image/logo_bg.jpg); 22 | background-repeat: repeat-x; 23 | background-position: top; 24 | width: 100%; 25 | overflow: hidden; 26 | } 27 | .container-index { 28 | width: 960px; 29 | margin: 0 auto; 30 | height: 91px; 31 | } 32 | .index-logo { 33 | float: left; 34 | overflow: hidden; 35 | margin-top: 1.5em; 36 | } 37 | .index-title { 38 | margin-top: 10px; 39 | margin-left: 20px; 40 | float: left; 41 | } 42 | #footer { 43 | height: 40px; 44 | background-color: #f5f5f5; 45 | position: absolute; 46 | bottom: 0; 47 | width: 100%; 48 | } 49 | .text-muted { 50 | line-height: 30px; 51 | text-align: center; 52 | } 53 | html, body { 54 | font-family: "yahei","Microsoft Yahei","微软雅黑",Helvetica,Georgia,Arial,sans-serif; 55 | font-size: 14px; 56 | height: 100%; 57 | width: 100%; 58 | background-image: url(../image/bg_index_h.jpg); 59 | background-repeat: repeat-x; 60 | } -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | text/html;charset=UTF-8 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/jquery.gritter.min.css: -------------------------------------------------------------------------------- 1 | #gritter-notice-wrapper{position:fixed;top:20px;right:20px;width:301px;z-index:9999}#gritter-notice-wrapper.top-left{left:20px;right:auto}#gritter-notice-wrapper.bottom-right{top:auto;left:auto;bottom:20px;right:20px}#gritter-notice-wrapper.bottom-left{top:auto;right:auto;bottom:20px;left:20px}.gritter-item-wrapper{position:relative;margin:0 0 10px 0;background:url(../images/ie-spacer.gif)}.gritter-top{background:url(../images/gritter.png) no-repeat left -30px;height:10px}.hover .gritter-top{background-position:right -30px}.gritter-bottom{background:url(../images/gritter.png) no-repeat left bottom;height:8px;margin:0}.hover .gritter-bottom{background-position:bottom right}.gritter-item{display:block;background:url(../images/gritter.png) no-repeat left -40px;color:#eee;padding:2px 11px 8px 11px;font-size:11px;font-family:verdana}.hover .gritter-item{background-position:right -40px}.gritter-item p{padding:0;margin:0;word-wrap:break-word}.gritter-close{display:none;position:absolute;top:5px;left:3px;background:url(../images/gritter.png) no-repeat left top;cursor:pointer;width:30px;height:30px}.gritter-title{font-size:14px;font-weight:700;padding:0 0 7px 0;display:block;text-shadow:1px 1px 0 #000}.gritter-image{width:48px;height:48px;float:left}.gritter-with-image,.gritter-without-image{padding:0}.gritter-with-image{width:220px;float:right}.gritter-light .gritter-item,.gritter-light .gritter-bottom,.gritter-light .gritter-top,.gritter-light .gritter-close{background-image:url(../images/gritter-light.png);color:#222}.gritter-light .gritter-title{text-shadow:none} -------------------------------------------------------------------------------- /source/shop/shop-mq/src/main/java/com/wxx/shop/kafka/demo/KafkaProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Aspire Tech,Inc. All rights reserved. 3 | */ 4 | package com.wxx.shop.kafka.demo; 5 | 6 | /** 7 | * kafka生产者 8 | * 9 | * @author wangxiaoxian 10 | * @version $v:1.0.0, $time:2017-04-13, $id:KafkaProducer.java, Exp $ 11 | */ 12 | import org.springframework.context.support.ClassPathXmlApplicationContext; 13 | import org.springframework.messaging.Message; 14 | import org.springframework.messaging.MessageChannel; 15 | import org.springframework.messaging.support.GenericMessage; 16 | 17 | public class KafkaProducer { 18 | 19 | public static void main(String[] args) { 20 | //ApplicationContext context =new ClassPathXmlApplicationContext("spring-produce.xml"); 21 | final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/spring-produce.xml", 22 | KafkaProducer.class); 23 | context.start(); 24 | 25 | MessageChannel messageChannel = (MessageChannel) context.getBean("inputToKafka"); 26 | for (int i = 0; i < 15; i++) { 27 | Message message = new GenericMessage("test-------------"); 28 | boolean flag = messageChannel.send(message); 29 | 30 | //boolean flag = messageChannel.send(message, 2 * 1000); 31 | System.out.println(flag); 32 | } 33 | 34 | try { 35 | System.out.println("Thread.sleep==========================="); 36 | Thread.sleep(100000); 37 | } catch (InterruptedException e) { 38 | e.printStackTrace(); 39 | } 40 | context.close(); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-service/src/main/java/com/wxx/shop/service/impl/GoodsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.service.impl; 2 | 3 | import java.util.Arrays; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | import com.wxx.shop.cache.cluster.RedisClusterService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | import org.springframework.util.StringUtils; 11 | 12 | import com.wxx.shop.cache.RedisUtil; 13 | import com.wxx.shop.dao.GoodsDao; 14 | import com.wxx.shop.model.Goods; 15 | import com.wxx.shop.service.GoodsService; 16 | 17 | @Service 18 | public class GoodsServiceImpl implements GoodsService { 19 | public static final String QUERY_GOODS_NAME_KEY_PREFIX = "query_goods_"; 20 | @Autowired 21 | private GoodsDao goodsDao; 22 | // @Autowired 23 | // private RedisUtil redisUtil; 24 | @Autowired 25 | RedisClusterService redisClusterService; 26 | 27 | @Override 28 | public List queryPage(Goods condition) { 29 | 30 | List list = goodsDao.queryPage(condition); 31 | return list; 32 | } 33 | 34 | @Override 35 | public List queryByName(String goodsSearchName) { 36 | String result = redisClusterService.getJedisCluster().get(QUERY_GOODS_NAME_KEY_PREFIX + goodsSearchName); 37 | // String result = (String) redisUtil.get(QUERY_GOODS_NAME_KEY_PREFIX + goodsSearchName); 38 | if (StringUtils.isEmpty(result)) { 39 | return Collections.EMPTY_LIST; 40 | } 41 | List list = Arrays.asList(result.split(",")); 42 | return list; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/resources/com/wxx/shop/mapper/oracle/GoodsDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | goods_id, 12 | price, 13 | goods_no, 14 | goods_name, 15 | brand, 16 | remark, 17 | create_time, 18 | update_time 19 | 20 | 21 | 24 | 25 | 26 | insert into test_user( 27 | user_id, 28 | create_time, 29 | nickname) 30 | values 31 | ( 32 | SEQ_MIGULOTTERY_DOWNLOAD_LOG.nextval, 33 | #{createTime}, 34 | #{nickname}) 35 | 36 | 37 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/filter/LoginFilter.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.filter; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.*; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | 9 | import com.wxx.shop.model.User; 10 | import org.springframework.util.StringUtils; 11 | 12 | public class LoginFilter implements Filter { 13 | 14 | private String[] excludeUrlList; 15 | 16 | @Override 17 | public void init(FilterConfig filterConfig) throws ServletException { 18 | String excludeUrl = filterConfig.getInitParameter("exclude-url"); 19 | if (StringUtils.hasText(excludeUrl)) { 20 | excludeUrlList = excludeUrl.split(","); 21 | } 22 | } 23 | 24 | @Override 25 | public void doFilter(ServletRequest request, ServletResponse response, 26 | FilterChain chain) throws IOException, ServletException { 27 | String url = ((HttpServletRequest)request).getRequestURL().toString(); 28 | for (String s : excludeUrlList) { 29 | if (url.toLowerCase().contains(s.trim().toLowerCase())) { 30 | chain.doFilter(request, response); 31 | return; 32 | } 33 | } 34 | 35 | User user = (User)((HttpServletRequest)request).getSession().getAttribute("user"); 36 | if (user == null) { 37 | response.setContentType("text/html;charset=UTF-8"); 38 | ((HttpServletResponse)response).sendRedirect( 39 | request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+((HttpServletRequest)request).getContextPath() 40 | + "/login.shtml?backUrl="); 41 | return; 42 | } 43 | chain.doFilter(request, response); 44 | } 45 | 46 | @Override 47 | public void destroy() { 48 | // TODO Auto-generated method stub 49 | 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/controller/GoodsController.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.controller 4 | * GoodsController.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:49:53 7 | */ 8 | package com.wxx.shop.controller; 9 | 10 | import java.util.List; 11 | 12 | import org.slf4j.Logger; 13 | import org.slf4j.LoggerFactory; 14 | import org.springframework.beans.factory.annotation.Autowired; 15 | import org.springframework.stereotype.Controller; 16 | import org.springframework.web.bind.annotation.RequestMapping; 17 | import org.springframework.web.bind.annotation.ResponseBody; 18 | 19 | import com.github.pagehelper.PageHelper; 20 | import com.github.pagehelper.PageInfo; 21 | import com.wxx.shop.common.WebResult; 22 | import com.wxx.shop.model.Goods; 23 | import com.wxx.shop.service.GoodsService; 24 | 25 | /** 26 | * 27 | * GoodsController 28 | */ 29 | @Controller 30 | @RequestMapping(value = "/goods") 31 | public class GoodsController { 32 | 33 | @RequestMapping("/queryPage.ajax") 34 | @ResponseBody 35 | public PageInfo queryPage(String goodsName, Integer pageNum, Integer pageSize) { 36 | Goods param = new Goods(); 37 | param.setGoodsName(goodsName); 38 | 39 | PageHelper.startPage(pageNum, pageSize); 40 | List list = goodsService.queryPage(param); 41 | PageInfo page = new PageInfo(list); 42 | 43 | return page; 44 | } 45 | 46 | @RequestMapping("/queryByName.ajax") 47 | @ResponseBody 48 | public WebResult queryByName(String goodsSearchName) { 49 | WebResult wr = new WebResult(); 50 | try { 51 | List goods = goodsService.queryByName(goodsSearchName); 52 | wr.setData(goods); 53 | } catch (Exception e) { 54 | LOGGER.error("根据名称查询异常", e); 55 | wr.setCode(500); 56 | } 57 | return wr; 58 | } 59 | 60 | @Autowired 61 | private GoodsService goodsService; 62 | 63 | private static final Logger LOGGER = LoggerFactory.getLogger(GoodsController.class); 64 | } 65 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/pages/shop/search.shtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 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 | 53 | 54 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/jquery.hotkeys.min.js: -------------------------------------------------------------------------------- 1 | !function(a){function b(b){if("string"==typeof b.data&&(b.data={keys:b.data}),b.data&&b.data.keys&&"string"==typeof b.data.keys){var c=b.handler,d=b.data.keys.toLowerCase().split(" ");b.handler=function(b){if(this===b.target||!(/textarea|select/i.test(b.target.nodeName)||a.hotkeys.options.filterTextInputs&&a.inArray(b.target.type,a.hotkeys.textAcceptingInputTypes)>-1)){var e="keypress"!==b.type&&a.hotkeys.specialKeys[b.which],f=String.fromCharCode(b.which).toLowerCase(),g="",h={};a.each(["alt","ctrl","shift"],function(a,c){b[c+"Key"]&&e!==c&&(g+=c+"+")}),b.metaKey&&!b.ctrlKey&&"meta"!==e&&(g+="meta+"),b.metaKey&&"meta"!==e&&g.indexOf("alt+ctrl+shift+")>-1&&(g=g.replace("alt+ctrl+shift+","hyper+")),e?h[g+e]=!0:(h[g+f]=!0,h[g+a.hotkeys.shiftNums[f]]=!0,"shift+"===g&&(h[a.hotkeys.shiftNums[f]]=!0));for(var i=0,j=d.length;j>i;i++)if(h[d[i]])return c.apply(this,arguments)}}}}a.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],options:{filterTextInputs:!0}},a.each(["keydown","keyup","keypress"],function(){a.event.special[this]={add:b}})}(jQuery||this.jQuery||window.jQuery); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/jquery.flot.resize.min.js: -------------------------------------------------------------------------------- 1 | !function(a,b,c){"$:nomunge";function d(c){h===!0&&(h=c||1);for(var i=f.length-1;i>=0;i--){var m=a(f[i]);if(m[0]==b||m.is(":visible")){var n=m.width(),o=m.height(),p=m.data(k);!p||n===p.w&&o===p.h||(m.trigger(j,[p.w=n,p.h=o]),h=c||!0)}else p=m.data(k),p.w=0,p.h=0}null!==e&&(h&&(null==c||1e3>c-h)?e=b.requestAnimationFrame(d):(e=setTimeout(d,g[l]),h=!1))}var e,f=[],g=a.resize=a.extend(a.resize,{}),h=!1,i="setTimeout",j="resize",k=j+"-special-event",l="pendingDelay",m="activeDelay",n="throttleWindow";g[l]=200,g[m]=20,g[n]=!0,a.event.special[j]={setup:function(){if(!g[n]&&this[i])return!1;var b=a(this);f.push(this),b.data(k,{w:b.width(),h:b.height()}),1===f.length&&(e=c,d())},teardown:function(){if(!g[n]&&this[i])return!1;for(var b=a(this),c=f.length-1;c>=0;c--)if(f[c]==this){f.splice(c,1);break}b.removeData(k),f.length||(h?cancelAnimationFrame(e):clearTimeout(e),e=null)},add:function(b){function d(b,d,f){var g=a(this),h=g.data(k)||{};h.w=d!==c?d:g.width(),h.h=f!==c?f:g.height(),e.apply(this,arguments)}if(!g[n]&&this[i])return!1;var e;return a.isFunction(b)?(e=b,d):(e=b.handler,void(b.handler=d))}},b.requestAnimationFrame||(b.requestAnimationFrame=function(){return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){return b.setTimeout(function(){a((new Date).getTime())},g[m])}}()),b.cancelAnimationFrame||(b.cancelAnimationFrame=function(){return b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||clearTimeout}())}(jQuery,this),function(a){function b(a){function b(){var b=a.getPlaceholder();0!=b.width()&&0!=b.height()&&(a.resize(),a.setupGrid(),a.draw())}function c(a){a.getPlaceholder().resize(b)}function d(a){a.getPlaceholder().unbind("resize",b)}a.hooks.bindEvents.push(c),a.hooks.shutdown.push(d)}var c={};a.plot.plugins.push({init:b,options:c,name:"resize",version:"1.0"})}(jQuery); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-service/src/main/java/com/wxx/shop/mq/GoodsConsumer.java: -------------------------------------------------------------------------------- 1 | package com.wxx.shop.mq; 2 | 3 | import javax.annotation.PostConstruct; 4 | import javax.annotation.PreDestroy; 5 | 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.beans.factory.annotation.Qualifier; 10 | import org.springframework.integration.channel.QueueChannel; 11 | import org.springframework.messaging.Message; 12 | import org.springframework.messaging.PollableChannel; 13 | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; 14 | import org.springframework.stereotype.Component; 15 | 16 | import com.wxx.shop.constenum.GoodsChannelEnum; 17 | import com.wxx.shop.kafka.KafkaConsumer; 18 | 19 | /** 20 | * Created by wangxiaoxian on 2017/4/15. 21 | */ 22 | @Component 23 | public class GoodsConsumer implements KafkaConsumer { 24 | 25 | private static final Logger LOGGER = LoggerFactory.getLogger(GoodsConsumer.class); 26 | @Autowired 27 | @Qualifier(GoodsChannelEnum.GOODS_CHANNEL_CONSUMER) 28 | private PollableChannel pollableChannel; 29 | @Autowired 30 | private ThreadPoolTaskExecutor threadPoolTaskExecutor; 31 | 32 | @PostConstruct 33 | @Override 34 | public void init() { 35 | threadPoolTaskExecutor.execute(new GoodsConsumerThread()); 36 | } 37 | 38 | @PreDestroy 39 | @Override 40 | public void destroy() { 41 | 42 | } 43 | 44 | private class GoodsConsumerThread extends Thread { 45 | @Override 46 | public void run() { 47 | Message msg = null; 48 | while ((msg = pollableChannel.receive(-1)) != null) { 49 | // 必须捕获异常,否则抛出异常后会跳出循环 50 | try { 51 | String map = (String) msg.getPayload(); 52 | System.out.println(map); 53 | } catch (Exception e) { 54 | LOGGER.error("消费goods消息出现异常", e); 55 | } 56 | } 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/model/Goods.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.model 4 | * Goods.java 5 | * wangxiaoxian 6 | * 2015年12月15日-����5:52:20 7 | */ 8 | package com.wxx.shop.model; 9 | 10 | import java.io.Serializable; 11 | import java.math.BigDecimal; 12 | import java.util.Date; 13 | 14 | /** 15 | * 16 | * Goods 17 | */ 18 | public class Goods implements Serializable { 19 | 20 | private static final long serialVersionUID = 1L; 21 | 22 | private Integer goodsId; 23 | private BigDecimal price; 24 | private String goodsNo; 25 | private String goodsName; 26 | private String goodsPyName; 27 | 28 | 29 | private String goodsShortPyName; 30 | private Date createTime; 31 | private Date updateTime; 32 | 33 | public BigDecimal getPrice() { 34 | return price; 35 | } 36 | 37 | public void setPrice(BigDecimal price) { 38 | this.price = price; 39 | } 40 | public String getGoodsPyName() { 41 | return goodsPyName; 42 | } 43 | 44 | public void setGoodsPyName(String goodsPyName) { 45 | this.goodsPyName = goodsPyName; 46 | } 47 | 48 | 49 | public String getGoodsShortPyName() { 50 | return goodsShortPyName; 51 | } 52 | 53 | public void setGoodsShortPyName(String goodsShortPyName) { 54 | this.goodsShortPyName = goodsShortPyName; 55 | } 56 | public String getGoodsNo() { 57 | return goodsNo; 58 | } 59 | public void setGoodsNo(String goodsNo) { 60 | this.goodsNo = goodsNo; 61 | } 62 | public String getGoodsName() { 63 | return goodsName; 64 | } 65 | public void setGoodsName(String goodsName) { 66 | this.goodsName = goodsName; 67 | } 68 | public Date getCreateTime() { 69 | return createTime; 70 | } 71 | public void setCreateTime(Date createTime) { 72 | this.createTime = createTime; 73 | } 74 | public Date getUpdateTime() { 75 | return updateTime; 76 | } 77 | public void setUpdateTime(Date updateTime) { 78 | this.updateTime = updateTime; 79 | } 80 | public Integer getGoodsId() { 81 | return goodsId; 82 | } 83 | public void setGoodsId(Integer goodsId) { 84 | this.goodsId = goodsId; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/colorpicker.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Colorpicker for Bootstrap 3 | * 4 | * Copyright 2012 Stefan Petre 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | */.colorpicker-saturation{width:100px;height:100px;background-image:url(img/saturation.png);cursor:crosshair;float:left} .colorpicker-saturation i{display:block;height:5px;width:5px;border:1px solid #000;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;position:absolute;top:0;left:0;margin:-4px 0 0 -4px} .colorpicker-saturation i b{display:block;height:5px;width:5px;border:1px solid #fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px} .colorpicker-hue,.colorpicker-alpha{width:15px;height:100px;float:left;cursor:row-resize;margin-left:4px;margin-bottom:4px} .colorpicker-hue i,.colorpicker-alpha i{display:block;height:1px;background:#000;border-top:1px solid #fff;position:absolute;top:0;left:0;width:100%;margin-top:-1px} .colorpicker-hue{background-image:url(img/hue.png)} .colorpicker-alpha{background-image:url(img/alpha.png);display:none} .colorpicker{*zoom:1;top:0;left:0;padding:4px;min-width:120px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px} .colorpicker:before,.colorpicker:after{display:table;content:""} .colorpicker:after{clear:both} .colorpicker:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:6px} .colorpicker:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px} .colorpicker div{position:relative} .colorpicker.alpha{min-width:140px} .colorpicker.alpha .colorpicker-alpha{display:block} .colorpicker-color{height:10px;margin-top:5px;clear:both;background-image:url(img/alpha.png);background-position:0 100%} .colorpicker-color div{height:10px} .input-append.color .add-on i,.input-prepend.color .add-on i{display:block;cursor:pointer;width:16px;height:16px} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 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 | 56 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 51 |
52 | 53 |
54 |
-------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-client/src/main/java/com/wxx/shop/model/IncomeLog.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * cn.springmvc.store.model 4 | * IncomeLog.java 5 | * wangxiaoxian 6 | * 2015��12��15��-����5:52:33 7 | */ 8 | package com.wxx.shop.model; 9 | 10 | /** 11 | * 12 | * IncomeLog 13 | */ 14 | public class IncomeLog { 15 | 16 | private String incomeLogId; 17 | private String goodsId; 18 | private String incomeTime; 19 | private String incomeQuantity; 20 | private String quantityUnit; 21 | private String productTime; 22 | private String expireTime; 23 | private String suplierId; 24 | private String createTime; 25 | private String updateTime; 26 | private String remark; 27 | 28 | public String getIncomeLogId() { 29 | return incomeLogId; 30 | } 31 | public void setIncomeLogId(String incomeLogId) { 32 | this.incomeLogId = incomeLogId; 33 | } 34 | public String getGoodsId() { 35 | return goodsId; 36 | } 37 | public void setGoodsId(String goodsId) { 38 | this.goodsId = goodsId; 39 | } 40 | public String getIncomeTime() { 41 | return incomeTime; 42 | } 43 | public void setIncomeTime(String incomeTime) { 44 | this.incomeTime = incomeTime; 45 | } 46 | public String getIncomeQuantity() { 47 | return incomeQuantity; 48 | } 49 | public void setIncomeQuantity(String incomeQuantity) { 50 | this.incomeQuantity = incomeQuantity; 51 | } 52 | public String getQuantityUnit() { 53 | return quantityUnit; 54 | } 55 | public void setQuantityUnit(String quantityUnit) { 56 | this.quantityUnit = quantityUnit; 57 | } 58 | public String getProductTime() { 59 | return productTime; 60 | } 61 | public void setProductTime(String productTime) { 62 | this.productTime = productTime; 63 | } 64 | public String getExpireTime() { 65 | return expireTime; 66 | } 67 | public void setExpireTime(String expireTime) { 68 | this.expireTime = expireTime; 69 | } 70 | public String getSuplierId() { 71 | return suplierId; 72 | } 73 | public void setSuplierId(String suplierId) { 74 | this.suplierId = suplierId; 75 | } 76 | public String getCreateTime() { 77 | return createTime; 78 | } 79 | public void setCreateTime(String createTime) { 80 | this.createTime = createTime; 81 | } 82 | public String getUpdateTime() { 83 | return updateTime; 84 | } 85 | public void setUpdateTime(String updateTime) { 86 | this.updateTime = updateTime; 87 | } 88 | public String getRemark() { 89 | return remark; 90 | } 91 | public void setRemark(String remark) { 92 | this.remark = remark; 93 | } 94 | 95 | } 96 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-dao/src/main/resources/com/wxx/shop/mapper/mysql/GoodsDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | goods_id, 21 | goods_no, 22 | goods_name, 23 | goods_py_name, 24 | goods_short_py_name, 25 | create_time, 26 | creator, 27 | update_time, 28 | updater 29 | 30 | 31 | 43 | 44 | 54 | 55 | insert into goods( 56 | goods_name 57 | ) values ( 58 | #{goodsName,jdbcType=VARCHAR} 59 | ) 60 | 61 | SELECT LAST_INSERT_ID() AS goods_id 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/java/com/wxx/shop/listener/DefaultInitListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Aspire Tech,Inc. All rights reserved. 3 | */ 4 | package com.wxx.shop.listener; 5 | 6 | import java.io.File; 7 | 8 | import javax.servlet.ServletContext; 9 | import javax.servlet.ServletContextEvent; 10 | import javax.servlet.ServletContextListener; 11 | 12 | import org.apache.commons.lang.StringUtils; 13 | import org.slf4j.Logger; 14 | import org.slf4j.LoggerFactory; 15 | import org.springframework.context.ApplicationContext; 16 | import org.springframework.web.context.support.WebApplicationContextUtils; 17 | 18 | /** 19 | * 项目的默认监听器 20 | * 21 | * @author wangxiaoxian 22 | * @version $v:1.0.0, $time:2017-04-18, $id:ShopDefaultListener.java, Exp $ 23 | */ 24 | public class DefaultInitListener implements ServletContextListener { 25 | private final static Logger LOGGER = LoggerFactory.getLogger(DefaultInitListener.class); 26 | protected static final String APP_ROOT_KEY = "APP_ROOT"; 27 | protected static final String CONFIG_ROOT = "configPath"; 28 | protected String appRootPath; 29 | 30 | public void contextInitialized(ServletContextEvent event) { 31 | ServletContext sc = event.getServletContext(); 32 | ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(sc); 33 | LOGGER.info("Initializing Web Application Context【" + sc.getRealPath("/") + "】."); 34 | System.setProperty(APP_ROOT_KEY, appRootPath = sc.getRealPath("/")); 35 | if (System.getProperty(APP_ROOT_KEY) == null) { 36 | System.setProperty(APP_ROOT_KEY, sc.getRealPath("/")); 37 | LOGGER.info("Initializing Web Application Context[" + System.getProperty(APP_ROOT_KEY) + "]."); 38 | } 39 | initRootConfigPath(sc); 40 | intiLog(sc); 41 | } 42 | 43 | /** 44 | * 初始化配置文件根目录. 45 | */ 46 | protected void initRootConfigPath(ServletContext sc) { 47 | LOGGER.info("设置系统配置文件根目录...."); 48 | //首先从系统属性中读取 49 | String configPath = System.getProperty(CONFIG_ROOT); 50 | if (StringUtils.isEmpty(configPath)) { 51 | configPath = getUserDir() + "/config"; 52 | } 53 | System.setProperty(CONFIG_ROOT, configPath); 54 | 55 | LOGGER.info("done! 配置文件根目录:" + configPath); 56 | } 57 | 58 | /** 59 | * 得到user.dir 60 | * @return user.dir 61 | */ 62 | protected String getUserDir() { 63 | return System.getProperty("user.dir"); 64 | } 65 | 66 | /** 67 | * 初始化日志输出文件根目录 68 | */ 69 | protected void intiLog(ServletContext sc) { 70 | } 71 | 72 | public void contextDestroyed(ServletContextEvent event) { 73 | LOGGER.info("Web Application Context【" + appRootPath + "】 Destroyed."); 74 | } 75 | } -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/assembly/db/mysql/dml.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0000', '苹果', 'pingguo', 'pg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 2 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0001', '梨', 'li', 'l', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 3 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0002', '榴莲', 'liulian', 'll', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 4 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0003', '芒果', 'mangguo', 'mg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 5 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0004', '西瓜', 'xigua', 'xg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 6 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0005', '百香果', 'baixiangguo', 'bxg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 7 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0006', '柠檬', 'ningmeng', 'nm', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 8 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0007', '哈密瓜', 'hamigua', 'hmg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 9 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0008', '火龙果', 'huolongguo', 'hlg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 10 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0009', '葡萄', 'putao', 'pt', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 11 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0010', '香蕉', 'xiangjiao', 'xj', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 12 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0011', '蛇果', 'sheguo', 'sg', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 13 | INSERT INTO shop.goods (goods_no, goods_name, goods_py_name, goods_short_py_name, create_time, creator, update_time, updater) VALUES ('0012', '圣女果', 'shengnvguo', 'sng', '2017-04-15', 'wxx', '2017-04-15', 'wxx'); 14 | 15 | INSERT INTO shop.goods_price (goods_id, brand_id, price, create_time, creator, update_time, updater) VALUES (1, 1, 6, '2017-04-16', 'wxx', '2017-04-16', 'wxx'); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/kafka/consumer.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 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 | goods 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/jquery.inputlimiter.1.3.1.min.js: -------------------------------------------------------------------------------- 1 | !function(a){a.fn.inputlimiter=function(b){{var c=a.extend({},a.fn.inputlimiter.defaults,b);a(this)}c.boxAttach&&!a("#"+c.boxId).length&&(a("
").appendTo("body").attr({id:c.boxId,"class":c.boxClass}).css({position:"absolute"}).hide(),a.fn.bgiframe&&a("#"+c.boxId).bgiframe());var d=function(){var b=a(this),d=g(b.val());!c.allowExceed&&d>c.limit&&b.val(h(b.val())),c.boxAttach&&a("#"+c.boxId).css({width:b.outerWidth()-(a("#"+c.boxId).outerWidth()-a("#"+c.boxId).width())+"px",left:b.offset().left+"px",top:b.offset().top+b.outerHeight()-1+"px","z-index":2e3});var e=c.limit-d>0?c.limit-d:0,f=c.remTextFilter(c,e),i=c.limitTextFilter(c);if(c.limitTextShow){a("#"+c.boxId).html(f+" "+i);var j=a("").appendTo("body").attr({id:"19cc9195583bfae1fad88e19d443be7a","class":c.boxClass}).html(f+" "+i).innerWidth();a("#19cc9195583bfae1fad88e19d443be7a").remove(),j>a("#"+c.boxId).innerWidth()&&a("#"+c.boxId).html(f+"
"+i),a("#"+c.boxId).show()}else a("#"+c.boxId).html(f).show()},e=function(b){var d=g(a(this).val());if(!c.allowExceed&&d>c.limit){var e=b.ctrlKey||b.altKey||b.metaKey;if(!e&&b.which>=32&&b.which<=122&&this.selectionStart===this.selectionEnd)return!1}},f=function(){var b=a(this);if(count=g(b.val()),!c.allowExceed&&count>c.limit&&b.val(h(b.val())),c.boxAttach)a("#"+c.boxId).fadeOut("fast");else if(c.remTextHideOnBlur){var d=c.limitText;d=d.replace(/\%n/g,c.limit),d=d.replace(/\%s/g,1===c.limit?"":"s"),a("#"+c.boxId).html(d)}},g=function(b){if("words"===c.limitBy.toLowerCase())return b.length>0?a.trim(b).replace(/\ +(?= )/g,"").split(" ").length:0;var d=b.length,e=b.match(/\n/g);return e&&c.lineReturnCount>1&&(d+=e.length*(c.lineReturnCount-1)),d},h=function(b){return"words"===c.limitBy.toLowerCase()?a.trim(b).replace(/\ +(?= )/g,"").split(" ").splice(0,c.limit).join(" ")+" ":b.substring(0,c.limit)};a(this).each(function(){var g=a(this);(!b||!b.limit)&&c.useMaxlength&&parseInt(g.attr("maxlength"))>0&&parseInt(g.attr("maxlength"))!=c.limit?g.inputlimiter(a.extend({},c,{limit:parseInt(g.attr("maxlength"))})):(!c.allowExceed&&c.useMaxlength&&"characters"===c.limitBy.toLowerCase()&&g.attr("maxlength",c.limit),g.unbind(".inputlimiter"),g.bind("keyup.inputlimiter",d),g.bind("keypress.inputlimiter",e),g.bind("blur.inputlimiter",f))})},a.fn.inputlimiter.remtextfilter=function(a,b){var c=a.remText;return 0===b&&null!==a.remFullText&&(c=a.remFullText),c=c.replace(/\%n/g,b),c=c.replace(/\%s/g,a.zeroPlural?1===b?"":"s":1>=b?"":"s")},a.fn.inputlimiter.limittextfilter=function(a){var b=a.limitText;return b=b.replace(/\%n/g,a.limit),b=b.replace(/\%s/g,a.limit<=1?"":"s")},a.fn.inputlimiter.defaults={limit:255,boxAttach:!0,boxId:"limiterBox",boxClass:"limiterBox",remText:"%n character%s remaining.",remTextFilter:a.fn.inputlimiter.remtextfilter,remTextHideOnBlur:!0,remFullText:null,limitTextShow:!0,limitText:"Field limited to %n character%s.",limitTextFilter:a.fn.inputlimiter.limittextfilter,zeroPlural:!0,allowExceed:!1,useMaxlength:!0,limitBy:"characters",lineReturnCount:1}}(jQuery); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/resources/kafka/producer.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /source/shop/release.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | all 5 | false 6 | 7 | 8 | dir 9 | 10 | 11 | 12 | 13 | 14 | shop_kernel 15 | shop_kernel/ 16 | 17 | 18 | bin 19 | shop_kernel/goods/ 20 | 21 | goods_start.bat 22 | goods_start.sh 23 | goods_stop.sh 24 | 25 | 26 | 37 | 38 | shop-goods/shop-goods-web/target 39 | shop_kernel/interface-web/ 40 | 41 | *.war 42 | 43 | 44 | 45 | ReleaseNotes 46 | shop_kernel/ReleaseNotes/ 47 | 48 | SHOP_Kernel_ReleaseNote.txt 49 | 50 | 51 | 52 | 53 | 54 | 55 | com.wxx.shop:shop-common 56 | 57 | 58 | shop_kernel/shop/lib 59 | false 60 | 61 | 62 | 63 | *:logback* 64 | *:log4j-over* 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | com.wxx.shop:shop-common 73 | com.wxx.shop:shop-goods-client 74 | com.wxx.shop:shop-goods-service 75 | 76 | 77 | shop_kernel/goods/lib/ 78 | false 79 | 80 | 81 | 82 | *:logback* 83 | *:log4j-over* 84 | 85 | shop_kernel/goods/lib/thirdparty/ 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/html5shiv.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}); -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/jquery-ui.custom.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.11.2 - 2014-10-28 2 | * http://jqueryui.com 3 | * Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, slider.css 4 | * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/bootstrap-timepicker.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Timepicker Component for Twitter Bootstrap 3 | * 4 | * Copyright 2013 Joris de Wit 5 | * 6 | * Contributors https://github.com/jdewit/bootstrap-timepicker/graphs/contributors 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */.bootstrap-timepicker{position:relative}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu{left:auto;right:0}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:before{left:auto;right:12px}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:after{left:auto;right:13px}.bootstrap-timepicker .add-on{cursor:pointer}.bootstrap-timepicker .add-on i{display:inline-block;width:16px;height:16px}.bootstrap-timepicker-widget.dropdown-menu{padding:4px}.bootstrap-timepicker-widget.dropdown-menu.open{display:inline-block}.bootstrap-timepicker-widget.dropdown-menu:before{border-bottom:7px solid rgba(0,0,0,.2);border-left:7px solid transparent;border-right:7px solid transparent;content:"";display:inline-block;position:absolute}.bootstrap-timepicker-widget.dropdown-menu:after{border-bottom:6px solid #FFF;border-left:6px solid transparent;border-right:6px solid transparent;content:"";display:inline-block;position:absolute}.bootstrap-timepicker-widget.timepicker-orient-left:before{left:6px}.bootstrap-timepicker-widget.timepicker-orient-left:after{left:7px}.bootstrap-timepicker-widget.timepicker-orient-right:before{right:6px}.bootstrap-timepicker-widget.timepicker-orient-right:after{right:7px}.bootstrap-timepicker-widget.timepicker-orient-top:before{top:-7px}.bootstrap-timepicker-widget.timepicker-orient-top:after{top:-6px}.bootstrap-timepicker-widget.timepicker-orient-bottom:before{bottom:-7px;border-bottom:0;border-top:7px solid #999}.bootstrap-timepicker-widget.timepicker-orient-bottom:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.bootstrap-timepicker-widget a.btn,.bootstrap-timepicker-widget input{border-radius:4px}.bootstrap-timepicker-widget table{width:100%;margin:0}.bootstrap-timepicker-widget table td{text-align:center;height:30px;margin:0;padding:2px}.bootstrap-timepicker-widget table td:not(.separator){min-width:30px}.bootstrap-timepicker-widget table td span{width:100%}.bootstrap-timepicker-widget table td a{border:1px transparent solid;width:100%;display:inline-block;margin:0;padding:8px 0;outline:0;color:#333}.bootstrap-timepicker-widget table td a:hover{text-decoration:none;background-color:#eee;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border-color:#ddd}.bootstrap-timepicker-widget table td a i{margin-top:2px;font-size:18px}.bootstrap-timepicker-widget table td input{width:25px;margin:0;text-align:center}.bootstrap-timepicker-widget .modal-content{padding:4px}@media (min-width:767px){.bootstrap-timepicker-widget.modal{width:200px;margin-left:-100px}}@media (max-width:767px){.bootstrap-timepicker{width:100%}.bootstrap-timepicker .dropdown-menu{width:100%}} -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/css/colorpicker.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Colorpicker for Bootstrap 3 | * 4 | * Copyright 2012 Stefan Petre 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | */ 9 | .colorpicker-saturation { 10 | width: 100px; 11 | height: 100px; 12 | background-image: url(img/saturation.png); 13 | cursor: crosshair; 14 | float: left; 15 | } 16 | .colorpicker-saturation i { 17 | display: block; 18 | height: 5px; 19 | width: 5px; 20 | border: 1px solid #000; 21 | -webkit-border-radius: 5px; 22 | -moz-border-radius: 5px; 23 | border-radius: 5px; 24 | position: absolute; 25 | top: 0; 26 | left: 0; 27 | margin: -4px 0 0 -4px; 28 | } 29 | .colorpicker-saturation i b { 30 | display: block; 31 | height: 5px; 32 | width: 5px; 33 | border: 1px solid #fff; 34 | -webkit-border-radius: 5px; 35 | -moz-border-radius: 5px; 36 | border-radius: 5px; 37 | } 38 | .colorpicker-hue, .colorpicker-alpha { 39 | width: 15px; 40 | height: 100px; 41 | float: left; 42 | cursor: row-resize; 43 | margin-left: 4px; 44 | margin-bottom: 4px; 45 | } 46 | .colorpicker-hue i, .colorpicker-alpha i { 47 | display: block; 48 | height: 1px; 49 | background: #000; 50 | border-top: 1px solid #fff; 51 | position: absolute; 52 | top: 0; 53 | left: 0; 54 | width: 100%; 55 | margin-top: -1px; 56 | } 57 | .colorpicker-hue { 58 | background-image: url(img/hue.png); 59 | } 60 | .colorpicker-alpha { 61 | background-image: url(img/alpha.png); 62 | display: none; 63 | } 64 | .colorpicker { 65 | *zoom: 1; 66 | top: 0; 67 | left: 0; 68 | padding: 4px; 69 | min-width: 120px; 70 | margin-top: 1px; 71 | -webkit-border-radius: 4px; 72 | -moz-border-radius: 4px; 73 | border-radius: 4px; 74 | } 75 | .colorpicker:before, .colorpicker:after { 76 | display: table; 77 | content: ""; 78 | } 79 | .colorpicker:after { 80 | clear: both; 81 | } 82 | .colorpicker:before { 83 | content: ''; 84 | display: inline-block; 85 | border-left: 7px solid transparent; 86 | border-right: 7px solid transparent; 87 | border-bottom: 7px solid #ccc; 88 | border-bottom-color: rgba(0, 0, 0, 0.2); 89 | position: absolute; 90 | top: -7px; 91 | left: 6px; 92 | } 93 | .colorpicker:after { 94 | content: ''; 95 | display: inline-block; 96 | border-left: 6px solid transparent; 97 | border-right: 6px solid transparent; 98 | border-bottom: 6px solid #ffffff; 99 | position: absolute; 100 | top: -6px; 101 | left: 7px; 102 | } 103 | .colorpicker div { 104 | position: relative; 105 | } 106 | .colorpicker.alpha { 107 | min-width: 140px; 108 | } 109 | .colorpicker.alpha .colorpicker-alpha { 110 | display: block; 111 | } 112 | .colorpicker-color { 113 | height: 10px; 114 | margin-top: 5px; 115 | clear: both; 116 | background-image: url(img/alpha.png); 117 | background-position: 0 100%; 118 | } 119 | .colorpicker-color div { 120 | height: 10px; 121 | } 122 | .input-append.color .add-on i, .input-prepend.color .add-on i { 123 | display: block; 124 | cursor: pointer; 125 | width: 16px; 126 | height: 16px; 127 | } -------------------------------------------------------------------------------- /source/shop/shop-goods/shop-goods-web/src/main/webapp/common/ace-admin/assets/js/jquery.autosize.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | Autosize 1.18.15 3 | license: MIT 4 | http://www.jacklmoore.com/autosize 5 | */ 6 | !function(a){var b,c={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},d='