Home  >  Q&A  >  body text

java - 大家可以分享一下各自如何高效编程吗?就是一些常用的配置及习惯等等

有几个问题想请教一下大家:
1、使用ssh等一些常用框架的时候,一般如何更方便的导入jar包及导入哪些jar包呢?
2、书写xml配置文件的时候,头几行一般是怎么写呢?是需要配置一下Spring在eclipse中的集成,还是去找Spring的doc文件拷贝?
还有其他一些高效编程的方法,大家能分享一下吗?

PHP中文网PHP中文网2743 days ago546

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-18 10:54:13

    1. IDE usually comes with functions, for example: soout is automatically completed as System.out.println.

    Based on this, many functions can be done, such as mc completion as method annotation, cc completion as class annotation:

    2.getter setter

    lombok is a good solution, but the solution that comes with the IDE is also good:
    Auto-complete getter setter.

    3.pom.xml

    All dependencies should be managed by maven/gradle.

    4.spring xml configuration problem.

    I don’t have any suggestions. If the IDE can generate it, just generate it. If it can’t, just save it locally for copy and paste.

    Maybe you can try springboot and no longer have to write spring configuration files.

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:54:13

    1. Use IDEA, the community version is also fine

    2. Use Maven or gradle

    3. Use Spring Family Bucket

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:54:13

    1. Complete core java, including effective java, thinking in java, etc.
    2. Understand each design pattern
    3. Understand the JVM memory model and garbage collection
    4. Some key classes Underlying implementation, such as hashmap, concurenthashmap, etc.

    reply
    0
  • Cancelreply