by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Christian Kleinhuis
    @trifox
    hey there, so i did a gitter (ahh what a relief to contact githubers directly) and thanks for your activity and coming back
    so, i have set up a spring app using the archetype maven spring-mvc, which works nicely, as far as i have seen there is not too much that has to be done to get springfox working
    at first @EmableSwagger2, but first thing i stumble upon is that i have to manually instantiate the swagger2controller
    @Bean
    Swagger2Controller swagger2Controller() {
        return new Swagger2Controller();
    }
    without this controller in place no api-doc endpoints are available
    having done that i have then copied the Docket bean config from the tutorial page
    and the apiInfo() i set there gets displayed in the v2/api-doc then, all fine
    BUT
    i thought the notation of .apis(RequestHandlerSelectors.any())
    would then allow me to spread the @Api and @ApiOperation annotations around the existing controllers, but the api response is just
    {
    swagger: "2.0",
    info: {
    description: "The core ufp api",
    version: "0.0.1",
    title: "ufp-api",
    termsOfService: "termsofservice",
    contact: {
    name: "ck@digitalgott.de"
    },
    license: {
    name: "license",
    url: "licenseurl"
    }
    },
    host: "localhost:8080",
    basePath: "/",
    securityDefinitions: {
    mykey: {
    type: "apiKey",
    name: "mykey",
    in: "header"
    }
    }
    }
    :D
    would be nice to get it running
    Christian Kleinhuis
    @trifox
    but i know i am stealing your precious time ;) hope to not bother you too much, and i hope its an easy to solve issue here
    Dilip Krishnan
    @dilipkrish
    Hello! Sorry for not getting back earlier
    You shouldn't have to instantiate the swagger2controller
    Also have u looked at the springfox demos?
    Christian Kleinhuis
    @trifox

    hallo dilip, i have now successful started setting up the project, so far so good, now when i use groupName() in a custom docket implementation this docket does not show in the response :(

    i want to list parts of the backend in the "admin" docket and another part in the "public" docket

    Dilip Krishnan
    @dilipkrish
    U need to add ?group=admin
    Christian Kleinhuis
    @trifox
    thats it, thank you ;)
    Christian Kleinhuis
    @trifox
    hello, my generic class outputs
    $ref: "#/definitions/DataDocumentLink«Formula»"
    i am using utf-8 encoding, but somehow this does not come out correct
    Christian Kleinhuis
    @trifox
    hello people
    how to include swagger-ui into non-spring boot java-config app?
    i am unsure how to "How does one configure swagger-ui for non-springboot applications?" implement using the java config style :(
    updated to springfox 2.3
    Leandro Costa
    @leandrocgsi
    Hey guy I do this in one project. Took a look here https://github.com/leandrocgsi/erudio-api-oauth2.
    Leandro Costa
    @leandrocgsi
    Hehehe I had a mistake but you can see one solution with JEE here https://github.com/leandrocgsi/erudio_swagger_java_ee and https://github.com/leandrocgsi/semeru-ejb-maven
    Christian Kleinhuis
    @trifox
    thx leandro, swagger ui just needed to be same version as main springfox
    yelhouti
    @yelhouti
    anyone from the team here?
    Dilip Krishnan
    @dilipkrish
    this is a really old gitter... based on the old project name. the sprinfox/springfox room is more active
    yelhouti
    @yelhouti
    thank you for letting me know, I'm waiting on private then :p
    vishnuvardhan reddy mittapalli
    @sunov
    Hi,I am new to spring framework,I did project using servlet,jsp,jdbc,core java code .it is fine.but everyone telling that spring with hibernate is easy.I tried with spring and hibernate for me it is not easy compared to j2ee.where we can use spring and hibernate
    Dilip Krishnan
    @dilipkrish
    @sunov use spring and hibernate when yr data model is simple and you want to make it easier to build more complex apps with it.
    vishnu1243
    @vishnu1243
    Hi,I am using spring tool suite,I am new to spring.How can configure hibernate in spring mvc in STS.with jdbc i am doing but how can i configure hibernate in spring mvc.
    supereme
    @manyixu
    hello
    the request in springmvc ,when get the content in request, we should use the getInputStream method
    Ajay Pratap
    @apple_ajay_twitter

    I am working on a gwt application, which provides several language support, hence makes compile time (permutations ) huge. also i want to add new languages pack in the app while the customer is running the app.

    i want to know is there a way that i can inject new language packs in the run time.
    also if you know how this thing is handle in other developing environments( spring mvc or any other).
    thanks in advance

    João Paiva da Costa Pinto
    @gigantedocil
    Hello, everyone. I'm trying to send data from SPA to my Spring application. I'm sending it in the following way: http://localhost:9000/api/games?page=-1&size=20&sort=id,asc&query=asd however my query parameter is always null. The pageable object gets sent properly. Why isn't the query being sent properly? Any ideas of what could be wrong? My code is as follows:
    @GetMapping("/games")
    @Timed
    public ResponseEntity<List<Game>> getAllGames(Pageable pageable, String query) {
    I got it to work with @RequestParameter
    Dilip Krishnan
    @dilipkrish
    @gigantedocil :clap: awesome.... which query param are you talking about tho... the query or the pageable
    João Paiva da Costa Pinto
    @gigantedocil
    the query
    For some reason the Pageable doesn't need @RequestParameter but query does
    ¯_(ツ)_/¯
    Dilip Krishnan
    @dilipkrish
    Good to know. Thanks!
    Raj
    @rajjaiswalsaumya
    swagger 2 ui issue
    unable to find swagger-ui.html
    throwing 500
    please someone help urgent