V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shanlan
V2EX  ›  程序员

午夜编程灵异事件,关于 Spring 的配置文件: applicationContext.xml 的文件名

  •  
  •   shanlan · 2019-02-15 01:11:00 +08:00 · 2109 次点击
    这是一个创建于 1897 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在进行 Spring 编程的时候,创建的标准的 Java Project 项目,配置文件名是:applicationContext.xml

    灵异的是,我发现这个配置文件使用:Spring config editor 打开时,不能进行联想。

    但是,我切换到以前的项目打开 applicationContext.xml 文件,发现是可以的。

    然后我尝试了把之前的 applicationContext.xml 的头部的命名空间到新的 applicationContext.xml 后,依然不行,最后我把该删除的都删除了,依然不行。

    最终,我发现只要不使用:applicationContext.xml 这个名字,就可以自动标签自动联想了。

    所以,这到底是“午夜灵异问题”,但是我技术问题?还请大佬解惑。↓

    application.gif

    见上动图↑

    6 条回复    2019-02-15 17:48:50 +08:00
    DawnLight
        1
    DawnLight  
       2019-02-15 02:04:25 +08:00 via Android
    也许是 bug (
    shanlan
        2
    shanlan  
    OP
       2019-02-15 09:39:03 +08:00
    @DawnLight 确实是 bug,睡一觉起来就好了。
    adrianXu
        3
    adrianXu  
       2019-02-15 10:24:04 +08:00
    为何不用神器 ide
    shanlan
        4
    shanlan  
    OP
       2019-02-15 11:08:18 +08:00
    @adrianXu 初学呢,还没有到自己独立开发的时候,是跟着视频来,所以为了避免不必要的干扰,暂时用视频里面的工具。
    shuqin2333
        5
    shuqin2333  
       2019-02-15 14:01:28 +08:00
    建议使用 idea 开发,建议使用 spring boot
    shanlan
        6
    shanlan  
    OP
       2019-02-15 17:48:50 +08:00
    @shuqin2333 好的哥,问题是还没有学会 Spring boot,请问有好的教程推荐吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2839 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:56 · PVG 22:56 · LAX 07:56 · JFK 10:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.