Skip to content

Commit

Permalink
opening rest controllers jackson object mappers in order to provide i…
Browse files Browse the repository at this point in the history
…nteroperability with CGLIB proxied beans
  • Loading branch information
mwftapi committed Oct 13, 2021
1 parent 464b88e commit b7e041e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController
open class DgsRestSchemaJsonController(open val schemaProvider: DgsSchemaProvider) {

private val mapper = jacksonObjectMapper()
open val mapper = jacksonObjectMapper()

// The @ConfigurationProperties bean name is <prefix>-<fqn>
@RequestMapping("#{@'dgs.graphql-com.netflix.graphql.dgs.webmvc.autoconfigure.DgsWebMvcConfigurationProperties'.schemaJson.path}", produces = ["application/json"])
Expand Down
Expand Up @@ -43,7 +43,7 @@ import java.util.*
*/
@RestController
open class DgsSSESubscriptionHandler(open val dgsQueryExecutor: DgsQueryExecutor) {
private val mapper = jacksonObjectMapper()
open val mapper = jacksonObjectMapper()

@RequestMapping("/subscriptions", produces = ["text/event-stream"])
fun subscriptionWithId(@RequestParam("query") queryBase64: String): ResponseEntity<SseEmitter> {
Expand Down

0 comments on commit b7e041e

Please sign in to comment.