Browse Source

allow circular references

pull/6686/head
YevhenBondarenko 4 years ago
parent
commit
50f3072608
  1. 2
      application/src/main/java/org/thingsboard/server/config/SpringfoxHandlerProviderBeanPostProcessor.java
  2. 2
      transport/coap/src/main/resources/tb-coap-transport.yml
  3. 2
      transport/http/src/main/resources/tb-http-transport.yml
  4. 2
      transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml
  5. 2
      transport/mqtt/src/main/resources/tb-mqtt-transport.yml
  6. 2
      transport/snmp/src/main/resources/tb-snmp-transport.yml

2
application/src/main/java/org/thingsboard/server/config/SpringfoxHandlerProviderBeanPostProcessor.java

@ -27,7 +27,7 @@ import java.lang.reflect.Field;
import java.util.List;
import java.util.stream.Collectors;
@TbCoreComponent
//@TbCoreComponent
@Component
//TODO: remove after fixing issue https://github.com/springfox/springfox/issues/3462 or after migration from springfox to springdoc
public class SpringfoxHandlerProviderBeanPostProcessor implements BeanPostProcessor {

2
transport/coap/src/main/resources/tb-coap-transport.yml

@ -19,6 +19,8 @@ spring.main.web-environment: "${WEB_APPLICATION_ENABLE:false}"
# If you enabled process metrics you should set 'web-application-type' to 'servlet' value.
spring.main.web-application-type: "${WEB_APPLICATION_TYPE:none}"
spring.main.allow-circular-references: "true"
server:
# Server bind address (has no effect if web-environment is disabled).
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"

2
transport/http/src/main/resources/tb-http-transport.yml

@ -14,6 +14,8 @@
# limitations under the License.
#
spring.main.allow-circular-references: "true"
server:
# Server bind address
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"

2
transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml

@ -19,6 +19,8 @@ spring.main.web-environment: "${WEB_APPLICATION_ENABLE:false}"
# If you enabled process metrics you should set 'web-application-type' to 'servlet' value.
spring.main.web-application-type: "${WEB_APPLICATION_TYPE:none}"
spring.main.allow-circular-references: "true"
server:
# Server bind address (has no effect if web-environment is disabled).
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"

2
transport/mqtt/src/main/resources/tb-mqtt-transport.yml

@ -19,6 +19,8 @@ spring.main.web-environment: "${WEB_APPLICATION_ENABLE:false}"
# If you enabled process metrics you should set 'web-application-type' to 'servlet' value.
spring.main.web-application-type: "${WEB_APPLICATION_TYPE:none}"
spring.main.allow-circular-references: "true"
server:
# Server bind address (has no effect if web-environment is disabled).
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"

2
transport/snmp/src/main/resources/tb-snmp-transport.yml

@ -19,6 +19,8 @@ spring.main.web-environment: "${WEB_APPLICATION_ENABLE:false}"
# If you enabled process metrics you should set 'web-application-type' to 'servlet' value.
spring.main.web-application-type: "${WEB_APPLICATION_TYPE:none}"
spring.main.allow-circular-references: "true"
server:
# Server bind address (has no effect if web-environment is disabled).
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"

Loading…
Cancel
Save