• 大小: 48.5MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-16
  • 语言: Java
  • 标签: javaweb  mysql  

资源简介

jsp+servlet技术实现的一个基本的网上商城,数据库使用Mysql,直接修改配置文件可以直接运行.GitHub地址:https://github.com/Npc-h/yunshop 预览地址:http://www.yangjunsi.top/lanqiaoshop/

资源截图

代码片段和文件信息

package cn.lanqiao.alipay;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名:AlipayConfig
 *功能:基础配置类
 *详细:设置帐户有关信息及返回路径
 *修改日期:2017-04-05
 *说明:
 *以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

// 应用ID您的APPID,收款账号既是您的APPID对应支付宝账号
public static String app_id = “2016091800538337“;

// 商户私钥,您的PKCS8格式RSA2私钥
    public static String merchant_private_key = “MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDasSSeiDSAJihzwbb4Gm6fe+lXlrUrN3Y9Ldt/xpa3uBeFyX44GlMh6qIdEtO5mGYeJDSY5AE3ph5k3XHgNHMkkm6+BDbe5yf7nf8myT8Xh11lAmq3Hj5zPLUcl2I5U6qCyTDIAUZoG4kAuz7B/iRBJaCv/Uott8Ykh9ssFPl3kVHGPQqq1ReIhkfkeO1jmh9oTrCT9dvsDpmcSt2/v7tXe9PjOWOsLq5hQtRSGcIkJco3gwpeDXHzDgg2hd9/hbNDGGbOti7MJ5jjHzcnGTyBQRAfohEGUKSgKH0yHkrCDIR315z4qPMNK6Bx2Aqfob47YDG2r2tVukzC0e7Ik1kLAgMBAAECggEAS0p/hAD6qj/431mLB8H54fiELn6ZYwaWM5vtHQGe9CNyHcJwLRqLEns4UvAfap9YUPpADX86GBGeFzXS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0lSP+OZazUN/cLjvNGd9CenKRQXDnMRZjSK20YGllS1lP66mA7cOQ9Mp16o4F“;

// 支付宝公钥查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = “MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvxExZDD8tW1BQkUsoHsShG9g9crOXRuOGCRg9wDJ9cmOhTZ8tLdkyz1gF57fah7wvYmY0AAF68IOC7+I7Q1M/2e8cP3U/R2t+HombMwohLDR42P2WLviELixqTu0dME/AkUOMtiSO04C4OMBwHmMW1FK1rXQYGSb9lRSacah+wC5dUmCFY1cmSHgClPMZCH5EZt2XZbNuS/x0hYaC9jaDxtnyZXBKbhbcr0z8lfhHsGD+6moRYKqyhmHsbGoWpzXkkfwCHj9c9J/TuXnjXUN5DZcsKZSxleTIAVtu5Myx0elUUYvvgv9vjTAldV/MvCURiSNxNxCj6LCs9uuznDxIwIDAQAB“;

// 服务器异步通知页面路径  需http://格式的完整路径,不能加?id=123这类自定义参数,必须外网可以正常访问
public static String notify_url = “http://www.yangjunsi.top/“;

// 页面跳转同步通知页面路径 需http://格式的完整路径,不能加?id=123这类自定义参数,必须外网可以正常访问
public static String return_url = “http://www.yangjunsi.top/lanqiaoshop/clearcart.do“;
//“http://daoyan.s1.natapp.cc/alipay.trade

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-30 16:32  lanqiaoshop\
     文件         739  2018-08-30 16:32  lanqiaoshop\.classpath
     文件         911  2018-08-30 16:32  lanqiaoshop\.project
     目录           0  2018-08-30 16:32  lanqiaoshop\.settings\
     文件         567  2018-08-30 16:32  lanqiaoshop\.settings\.jsdtscope
     文件         122  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.core.resources.prefs
     文件         364  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.jdt.core.prefs
     文件         461  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.wst.common.component
     文件         345  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-08-30 16:32  lanqiaoshop\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-08-30 16:32  lanqiaoshop\build\
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\
     文件         344  2018-08-30 16:32  lanqiaoshop\build\classes\c3p0-config.xml
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\cn\
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\alipay\
     文件        4036  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\alipay\AlipayConfig.class
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\
     文件        2085  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\Captcha.class
     文件        4193  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\Encoder.class
     文件        3508  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\GifCaptcha.class
     文件         573  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\GifDecoder$Gifframe.class
     文件       11525  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\GifDecoder.class
     文件        7824  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\GifEncoder.class
     文件        1619  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\OutImg.class
     文件        6889  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\Quant.class
     文件        1091  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\Randoms.class
     文件         769  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\checkcode\Streams.class
     目录           0  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\controller\
     文件        2146  2018-08-30 16:32  lanqiaoshop\build\classes\cn\lanqiao\controller\AcitveController.class
............此处省略1036个文件信息

评论

共有 条评论