目前项目打算大改,以前用的Java+SpringMvc+Mybatis+Mysql+Maven 这一套已经很的很熟悉了,想问下有没设计更优雅的语言和框架去写后台,最好性能要棒一点,逻辑更好写一点
==================
update
目前已确定还是用用上面的,只是SpringMvc 还在犹豫中,考虑是否用更简洁的
springboot,springside等spring其他开源项目
====================
update
还是springmvc好用,但是究竟要不要从maven迁移到gradle,个人感觉只是写法简单了而已,经常用的地方感觉没太大区别,现在这个问题纠结点在这里了。。
迷茫2017-04-17 16:23:49
Those who asked the poster to switch from JAVA to PHP, can you think about it a little bit? If it is a personal project, it doesn't matter. If it is a commercial project, have you considered whether the project team can accept it? Can customers accept it? What about the extra cost? Is middleware probably free? I get drunk even if I switch from one language to another.
Elegant? Is it because the things you made make you feel unelegant? Then you say that things like Java+SpringMvc+Mybatis+Mysql+Maven are not elegant?
Let’s talk about the specific stuff. Bad performance? Take out Benchmark. Is it too cumbersome to solve the problem? List some specific examples to see if you have really tapped out the potential of these frameworks?
天蓬老师2017-04-17 16:23:49
Life is short, I use python.
Lightweight ones such as flask, web.py, etc.; heavyweight ones include Django, and frameworks derived from Django, Mezzanine, Django-CMS and the like——plus With their complete community support and not just a little rich package, but comfortable syntax, everything can be done quickly.
大家讲道理2017-04-17 16:23:49
Speaking of Python and Django, I guess many have never tried ruby and rails...
伊谢尔伦2017-04-17 16:23:49
Actually, your framework is already universal and highly scalable. I don’t know why you need to change the framework. Can you tell me specifically about the problems you encountered? The current framework is too cumbersome? In fact, if you think about it carefully, the Java+SpringMvc+Mybatis+Mysql+Maven plus velocity you mentioned is actually amazing.
If your project is now in a stable stage, the business volume does not need to change too much, the business is not complicated, and you just want to change the framework and play with it, you can try using nodejs. I currently changed a cloud formatting project from Java to Node (processing business is very simple, but the concurrency requirements are large).
If you still want to use Java, you can try encapsulating your own JDBC tool class. For details, please refer to Jfinal or smartframework.
If the project is very complex, I advise you to use the current one. The migration will be a lot of work, and when the project needs to expand other functions in the future, you will know the benefits of this framework.
Migrating from maven to gradle is not necessary.
Finally--
Discuss it with your colleagues, the project does not belong to one person. ^-^
黄舟2017-04-17 16:23:49
I have been using Python+Twisted+Klein to write the backend. The logic implementation will be more concise and elegant, suitable for rapid development.
迷茫2017-04-17 16:23:49
It depends on what you mainly do. Fundamentally, there is no distinction between high and low language. There are mainly choices in solving different problems and what is suitable for it. The second is your own team composition. It's impossible for you to ask a question here and then choose something that no one has ever been exposed to. The cost went up all of a sudden and the project was 100% delayed. Quality is not yet guaranteed. Furthermore, a project should be language-agnostic. Maybe only one language is used, or different languages may be used to solve different problems. These questions should be consulted with your architect, who can give you the best advice.
阿神2017-04-17 16:23:49
What is an elegant backstage? I have always believed that you can write elegantly in any language, depending on your level.
Use the framework you are most familiar with but not terrible, the most elegant.
伊谢尔伦2017-04-17 16:23:49
See how you define elegance:
In terms of maturity, this is what the original poster did. Especially in China, many Internet giants have already used it very much, so there won’t be any big pitfalls. Java enterprise level is still very reliable
In terms of performance, Golang takes the lead. Go look at several Golang web frameworks and the benchmark data are very impressive. Erlang is also possible
In terms of rapid development, the only ones mentioned by some brothers upstairs are python or ruby
When it comes to the full stack, let’s talk about node. As far as I know, some new BAT projects have already started doing this
When it comes to new trends, try Rust. Some startups are trying new things
In terms of real elegance, it may have to be a functional language, such as Clojure and Scala, that is, it is suitable for both big data streaming and large concurrency, and the amount of code written is only one-fifth of Java. One tenth. However, the threshold is high and there are few talented coders. Moreover, if the talented coders finish writing and leave, how will the newcomers keep up? They won’t be able to understand the program.