spring boot record of project development

The company recorded into the first frame with spring boot development projects.

spring boot develop feels like before, easy and fast. As a frame-based framework spring up package, simplifies configuration a considerable part of the framework of the SSM, the start-up mode, we do not put an item labeled as war package thrown into the tomcat to run, but the use of a startup class, which for the latter part of the test or some other operation it is very convenient for both. Start class uses the annotation mode scanning, to help developers save a lot of configuration files, not only eliminates the need for multiple configuration also eliminates the need to modify the configuration file changes because of trouble.

Very convenient

On the database side, I did not use reverse engineering colleagues used, but the use of an idea in a very convenient plug-ins: MyBatisCodeHelperPro, it not only has a graphical interface, you can refresh the data in real time according to changes in the database, you can generate a key Interface layer mapper, mapper.xml files, and entity class. On the left side each interface, and mapper.xml file mapper layer of each SQL statement has a bird's icon, you can test the interface, real-time fill in the data, timely test, and the query results graphically on the console the form displayed. Also in the running, you can also print SQL statements in real time.
Here Insert Picture Description
Here Insert Picture Description
Development on collaboration tools, used to use SVN some more, but now almost forgotten, now with git is very convenient, one-button you can update the local code, can automatically detect update conflicts, and displayed. And the author is also a key commit, you can enter the information submitted, easy to find, you can view the records submitted on a remote branch git ,, after the commit, git push it to push their own code can go up.

Here Insert Picture Description
Experience some of the problems of the development process:
without a scan module 1. Start class, front-access displays 403 forbidden, started classes with the scan on it.
2. The data from the front desk sometimes not receive, you can try the method in parentheses controller's plus @RequestBody comment.
3. When cross-domain problem, look at their own controller layer there @CrossOrigin this annotation can be written @CrossOrigin (origins = "*") , can solve cross-domain problems.
4. There are some up and down the page in the form of a table, put the corresponding sub-table splitting the main table in the database, the late development a lot easier.
5. When receiving the value of the page, a data table may not, if several tables are interrelated, may be packed into one data class. If many relationship, a class may be packaged, is a collection of attributes, the other object.

. . . Think of it together. . . .

Published 15 original articles · won praise 2 · Views 765

Guess you like

Origin blog.csdn.net/oak_javaLearner/article/details/104505834