swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

Spring Server 6not working

Open Myasir92 opened this issue 5 years ago • 2 comments

I use the swagger json to create the node js server it generate successfully and also run but while using same json i try to generate spring server it shows error as shown below

Swagger Version: 2.4.28 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/HP/.m2/repository/org/springframework/spring-core/4.3.13.RELEASE/spring-core-4.3.13.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

Myasir92 avatar Mar 22 '21 12:03 Myasir92

hey @Myasir92, i dont see errors but warning. Did you try running the generated code?

HugoMario avatar Mar 23 '21 23:03 HugoMario

Yeah it run successfully but when i try to send request to any route so instead of specified host it send request to its own server not on the host and schema i define in json

Myasir92 avatar Mar 24 '21 01:03 Myasir92