79088853

Date: 2024-10-15 07:43:15
Score: 0.5
Natty:
Report link

You might consider extracting all public configuration from the application.properties file in devenv into a new application-common.properties file. This new file should be located in a module that both devenv and network have introduced. At this point you can introduce it like this @TestPropertySource({“classpath: application-common.properties”}) Maybe @TestPropertySource({“classpath*:application-common.properties”}) I'm sorry I haven't used it this way. If you consider a configuration center (e.g. nacos), it might be easier.

Reasons:
  • RegEx Blacklisted phrase (0.5): sorry I have
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lingting