Giter Site home page Giter Site logo

Comments (3)

studeyang avatar studeyang commented on July 29, 2024

你的请求参数是什么?正常的参数格式是:

分层架构:

{
    "dependencies": [ ], 
    "name": "Example", 
    "type": "maven-project", 
    "description": "Example project for Spring Boot", 
    "groupId": "com.yourcompany", 
    "artifactId": "example", 
    "version": "1.0.0-SNAPSHOT", 
    "bootVersion": "1.4.2.RELEASE", 
    "packaging": "jar", 
    "applicationName": null, 
    "language": "java", 
    "packageName": "com.yourcompany.example", 
    "javaVersion": "1.8", 
    "baseDir": "example", 
    "parameters": {
        "cookie": "JSESSIONID=4A34F92D60BAB46DB23E95213598C039", 
        "accept-language": "zh-CN,zh;q=0.9", 
        "accept-encoding": "gzip, deflate, br", 
        "referer": "http://localhost:8080/", 
        "sec-fetch-dest": "empty", 
        "sec-fetch-mode": "cors", 
        "sec-fetch-site": "same-origin", 
        "accept": "*/*", 
        "sec-ch-ua-platform": "\"macOS\"", 
        "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", 
        "sec-ch-ua-mobile": "?0", 
        "sec-ch-ua": "\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\"", 
        "connection": "close", 
        "host": "localhost:8080"
    }
}

None:

{
    "dependencies": [ ], 
    "name": "Example", 
    "type": "based-project", 
    "description": "Example project for Spring Boot", 
    "groupId": "com.yourcompany", 
    "artifactId": "example", 
    "version": "1.0.0-SNAPSHOT", 
    "bootVersion": "1.4.2.RELEASE", 
    "packaging": "jar", 
    "applicationName": null, 
    "language": "java", 
    "packageName": "com.yourcompany.example", 
    "javaVersion": "1.8", 
    "baseDir": "example", 
    "parameters": {
        "cookie": "JSESSIONID=4A34F92D60BAB46DB23E95213598C039", 
        "accept-language": "zh-CN,zh;q=0.9", 
        "accept-encoding": "gzip, deflate, br", 
        "referer": "http://localhost:8080/", 
        "sec-fetch-dest": "empty", 
        "sec-fetch-mode": "cors", 
        "sec-fetch-site": "same-origin", 
        "accept": "*/*", 
        "sec-ch-ua-platform": "\"macOS\"", 
        "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", 
        "sec-ch-ua-mobile": "?0", 
        "sec-ch-ua": "\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Google Chrome\";v=\"108\"", 
        "connection": "close", 
        "host": "localhost:8080"
    }
}

type 支持两种类型:maven-project 和 based-project。

from start-parent.

zhaoye123 avatar zhaoye123 commented on July 29, 2024

image
你是请求路径里面参数我之前用得原生调用http://localhost:8080/starter.zip

from start-parent.

studeyang avatar studeyang commented on July 29, 2024

这是一个正常的HTTP请求:

GET http://localhost:8081/starter.zip?type=maven-project&language=java&bootVersion=2.7.1.RELEASE&baseDir=demo&groupId=com.yourcompany.zebra&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.yourcompany.example&packaging=jar&javaVersion=1.8

Request Headers
User-Agent: PostmanRuntime/7.29.2
Accept: */*
Postman-Token: 7278cac0-4672-494f-84de-7f45b9dd8cb9
Host: localhost:8081
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Response Headers
Content-Disposition: attachment; filename="demo.zip"
Content-Type: application/zip
Content-Length: 61028
Date: Sat, 10 Dec 2022 02:33:44 GMT
Keep-Alive: timeout=60
Connection: keep-alive

from start-parent.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.