上一篇23、【支付模块快发】——Java对接支付宝步骤(沙箱环境)我们讲解了怎么配置相关配置文件,下面我们调试一下怎么使其在IDEA的web项目中跑起来,然后在浏览器中进行操作
我们用IDEA导入支付宝对接Demo的是时候发现不能运行,下面讲解一下怎么在IDEA中运行支付宝Demo并且在浏览器中运行出来~
首先我们点击IDEA上面的这个按钮:
![img_d424165931fb7d1d67b0eda69893a41a.png](https://yqfile.alicdn.com/img_d424165931fb7d1d67b0eda69893a41a.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
或者点击:
Project Structure...
![img_92fbdecd033b1de521c7ea9e3ce48732.png](https://yqfile.alicdn.com/img_92fbdecd033b1de521c7ea9e3ce48732.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
然后按图中操作:
![img_282317a81e2b96f4910d4c2aba540ca8.png](https://yqfile.alicdn.com/img_282317a81e2b96f4910d4c2aba540ca8.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
下一步选中我们的项目:
![img_fb44c1cfd9dd883d1b017faf5d5334a5.png](https://yqfile.alicdn.com/img_fb44c1cfd9dd883d1b017faf5d5334a5.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
然后点击下方的Apply...
下一步:
![img_37237ab426b589ae46bd3ae16fada100.png](https://yqfile.alicdn.com/img_37237ab426b589ae46bd3ae16fada100.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
选择我们的项目:
![img_e072655cf313690f1fc78d74ca05500f.png](https://yqfile.alicdn.com/img_e072655cf313690f1fc78d74ca05500f.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
点击OK:
![img_53c1bacc2734341af84093de1637ab45.png](https://yqfile.alicdn.com/img_53c1bacc2734341af84093de1637ab45.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
点击Add Configuration
![img_b9d3b286553181f7350b0aaef547fc47.png](https://yqfile.alicdn.com/img_b9d3b286553181f7350b0aaef547fc47.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_478cd0d9b7d9f292d24ce482b239acc3.png](https://yqfile.alicdn.com/img_478cd0d9b7d9f292d24ce482b239acc3.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_81e44e947dc8a0e87780999b41532564.png](https://yqfile.alicdn.com/img_81e44e947dc8a0e87780999b41532564.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_9b253fee0e3580a10c528dccdd4aaa74.png](https://yqfile.alicdn.com/img_9b253fee0e3580a10c528dccdd4aaa74.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
Apply...
![img_9baf2c6e78e41b20fbbeab53ed74e318.png](https://yqfile.alicdn.com/img_9baf2c6e78e41b20fbbeab53ed74e318.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
乌拉,下面就可以点击下面的运行按钮啦~
![img_73239413b019219b22d86f4844de6f73.png](https://yqfile.alicdn.com/img_73239413b019219b22d86f4844de6f73.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
测试我们的二维码支付:
![img_b740c52aba8b73916eaac8a900df18cd.png](https://yqfile.alicdn.com/img_b740c52aba8b73916eaac8a900df18cd.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
填写参数:
![img_93ed51422e9da58816eca3e8908eb89b.png](https://yqfile.alicdn.com/img_93ed51422e9da58816eca3e8908eb89b.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
确认之后就会跳转到二维码啦:
![img_575ccbc5dc215985f9648f3e599f0f5a.png](https://yqfile.alicdn.com/img_575ccbc5dc215985f9648f3e599f0f5a.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_a7a08b6340b8a1d0c2aa9bd5de736c2a.png](https://yqfile.alicdn.com/img_a7a08b6340b8a1d0c2aa9bd5de736c2a.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_5bf4ad0249997de506476a70df350f63.png](https://yqfile.alicdn.com/img_5bf4ad0249997de506476a70df350f63.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
perfect~