Home  >  Q&A  >  body text

java - IDEA怎么快速引入 spring 的命名空间

eclipse 有可视化工具,可以点选引入 spring 配置文件的命名空间
请问 IDEA 有相似的东西可以快速引入命名空间么?

PHP中文网PHP中文网2766 days ago1403

reply all(4)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 14:55:35

    Prepare a relatively complete copy
    Copy it when needed, modify it and remove the redundant ones (or ignore them)
    I will talk nonsense if there are bugs in IDEA’s auto-complete namespace...

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:55:35

    What do you mean? Quickly create packages according to rules? If so, I usually use gradle to do this

    reply
    0
  • PHPz

    PHPz2017-04-17 14:55:35

    Do you mean to quickly discover Spring configuration files?

    You can add facets in Project Structure, select Spring, and then idea will automatically scan Spring’s xml configuration file for you.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:55:35

    MyEcplise does a good job at this point, that is, there will be a namespace in the lower corner of the file
    If you want to quickly reflect the namespace in the idea, such as introducing the p namespace, type xmlns:p= first, and then it will Automatically prompt a series of things, as shown in the picture below

    It should be noted that it must be typed below the line xmlns:context="", otherwise it will not prompt. You can prompt it at the position shown in the picture, otherwise it may not prompt

    reply
    0
  • Cancelreply