資源簡(jiǎn)介
該系統(tǒng)是用javaEE開(kāi)發(fā)的手機(jī)商城系統(tǒng),采用jsp+servlet+bean的MVC模式進(jìn)行開(kāi)發(fā),數(shù)據(jù)庫(kù)采用的是mysql,其中包含文件上傳至阿里云,支付寶沙箱環(huán)境支付等等功能。(含數(shù)據(jù)庫(kù))

代碼片段和文件信息
package?com.alipay.config;
import?java.io.FileWriter;
import?java.io.IOException;
/*?*
?*類名:AlipayConfig
?*功能:基礎(chǔ)配置類
?*詳細(xì):設(shè)置帳戶有關(guān)信息及返回路徑
?*修改日期:2017-04-05
?*說(shuō)明:
?*以下代碼只是為了方便商戶測(cè)試而提供的樣例代碼,商戶可以根據(jù)自己網(wǎng)站的需要,按照技術(shù)文檔編寫(xiě)并非一定要使用該代碼。
?*該代碼僅供學(xué)習(xí)和研究支付寶接口使用,只是提供一個(gè)參考。
?*/
public?class?AlipayConfig?{
//↓↓↓↓↓↓↓↓↓↓請(qǐng)?jiān)谶@里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
//?應(yīng)用ID您的APPID,收款賬號(hào)既是您的APPID對(duì)應(yīng)支付寶賬號(hào)
public?static?String?app_id?=?“換成自己的“;
//?商戶私鑰,您的PKCS8格式RSA2私鑰
????public?static?String?merchant_private_key?=?“換成自己的“;
//?支付寶公鑰查看地址:https://openhome.alipay.com/platform/keyManage.htm?對(duì)應(yīng)APPID下的支付寶公鑰。
????public?static?String?alipay_public_key?=?“換成自己的“;
//?服務(wù)器異步通知頁(yè)面路徑??需http://格式的完整路徑,不能加?id=123這類自定義參數(shù),必須外網(wǎng)可以正常訪問(wèn)
//public?static?String?notify_url?=?“http://工程公網(wǎng)訪問(wèn)地址/alipay.trade.page.pay-JAVA-UTF-8/notify_url.jsp“;
//?頁(yè)面跳轉(zhuǎn)同步通知頁(yè)面路徑?需http://格式的完整路徑,不能加?id=123這類自定義參數(shù),必須外網(wǎng)可以正常訪問(wèn)
public?static?String?return_url?=?“http://tfuvds.natappfree.cc/CellPhoneShop/front/return_url.jsp“;
//?簽名方式
public?static?String?sign_type?=?“RSA2“;
//?字符編碼格式
public?static?String?charset?=?“utf-8“;
//?支付寶網(wǎng)關(guān)
public?static?String?gatewayUrl?=?“https://openapi.alipaydev.com/gateway.do“;
//?支付寶網(wǎng)關(guān)
public?static?String?log_path?=?“C:\\“;
//↑↑↑↑↑↑↑↑↑↑請(qǐng)?jiān)谶@里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
????/**?
?????*?寫(xiě)日志,方便測(cè)試(看網(wǎng)站需求,也可以改成把記錄存入數(shù)據(jù)庫(kù))
?????*?@param?sWord?要寫(xiě)入日志里的文本內(nèi)容
?????*/
????public?static?void?logResult(String?sWord)?{
????????FileWriter?writer?=?null;
????????try?{
????????????writer?=?new?FileWriter(log_path?+?“alipay_log_“?+?System.currentTimeMillis()+“.txt“);
????????????writer.write(sWord);
????????}?catch?(Exception?e)?{
????????????e.printStackTrace();
????????}?finally?{
????????????if?(writer?!=?null)?{
????????????????try?{
????????????????????writer.close();
????????????????}?catch?(IOException?e)?{
????????????????????e.printStackTrace();
????????????????}
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????9577??2019-10-28?10:24??cellphone.sql
?????文件???????2731??2018-12-14?11:53??CellPhoneShop\.classpath
?????文件???????1046??2018-10-08?11:02??CellPhoneShop\.project
?????文件????????503??2018-10-08?11:02??CellPhoneShop\.settings\.jsdtscope
?????文件????????118??2018-11-16?11:07??CellPhoneShop\.settings\org.eclipse.core.resources.prefs
?????文件????????364??2018-10-08?11:02??CellPhoneShop\.settings\org.eclipse.jdt.core.prefs
?????文件????????568??2018-10-30?15:43??CellPhoneShop\.settings\org.eclipse.wst.common.component
?????文件????????345??2018-10-08?11:02??CellPhoneShop\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2018-10-08?11:02??CellPhoneShop\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2018-10-08?11:02??CellPhoneShop\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????1949??2019-10-28?10:29??CellPhoneShop\build\classes\com\alipay\config\AlipayConfig.class
?????文件????????368??2019-03-08?14:02??CellPhoneShop\build\classes\com\cool\Constant.class
?????文件????????845??2019-03-08?14:02??CellPhoneShop\build\classes\dao\AdminDao.class
?????文件????????222??2019-03-08?14:02??CellPhoneShop\build\classes\dao\BrandDao.class
?????文件???????3420??2019-03-08?14:02??CellPhoneShop\build\classes\dao\BrandDaoImpl.class
?????文件????????494??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CellphoneCMDao.class
?????文件???????7313??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CellphoneCMDaoImpl.class
?????文件????????645??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CellphoneDao.class
?????文件???????7854??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CellphoneDaoImpl.class
?????文件????????291??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CommentManageDao.class
?????文件???????3836??2019-03-08?14:02??CellPhoneShop\build\classes\dao\CommentManageDaoImpl.class
?????文件???????3739??2019-10-28?10:30??CellPhoneShop\build\classes\dao\FileDao.class
?????文件????????335??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\AddressDao.class
?????文件???????2926??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\AddressDaoImpl.class
?????文件????????444??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CellphoneInformationDao.class
?????文件???????3562??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CellphoneInformationDaoImpl.class
?????文件????????260??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CellphoneListDao.class
?????文件???????3838??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CellphoneListDaoImpl.class
?????文件????????240??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CommentDao.class
?????文件???????3297??2019-03-08?14:02??CellPhoneShop\build\classes\dao\front\CommentDaoImpl.class
............此處省略389個(gè)文件信息
評(píng)論
共有 條評(píng)論