How Springboot configures dubbo monitor

springmvc just add

to the configuration file
<dubbo:monitor protocol="registry"/>

is fine
springboot?


it is not clear whether to use springboot to start dubbo monitor, or springboot to start dubbo service, and dubbo service to enable monitor?

springboo itself does not have much meaning, just a layer of application encapsulation on the basis of spring, which does not change the previous configuration method.
you can try it by following these steps:

  1. add the xxx-servlet.xml file to the project and put it under the resources/config/ file
  2. complete the configuration of xxx-servlet.xml by referring to springmvc, and add < dubbo:monitor protocol= "registry" / >
  3. to the file.
  4. add @ ImportResource ({"classpath:config/xxx-servlet.xml"}) to the startup class of spingboot to manually introduce the custom configuration
  5. start the program to see the effect

dubbo.monitor.protocol=registry

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38b92-2c14d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38b92-2c14d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?