官术网_书友最值得收藏!

  • Spring MVC Blueprints
  • Sherwin John Calleja Tragura
  • 258字
  • 2021-07-14 10:48:21

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

All Java codes, and some XML configurations are written in this style:

package org.packt.edms.portal.model.form;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
public class MultipleFilesUploadForm {
    private List<MultipartFile> files;
    public List<MultipartFile> getFiles() {
        return files;
    }
    public void setFiles(List<MultipartFile> files) {
        this.files = files;
    }
}

The JavaScript codes of the book are written in this style:

<script type="text/javascript">
define(["dojo/request/xhr","dojo/dom","dojo/on","dojo/domReady!"],
       function(xhr,dom,on){
         var tripId = $('#tripid').val();
         var param = ‘{ id: tripId }’;
         function listDestinations(){ // see the sources    }
           on(dom.byId("custSearchBtn"),
                  "click",callAjaxListing);    } );
</script>

Pure HTML codes use it’s a style like this:

<body>
  <div id="sf-wrapper">
    <div class="container-fluid">
         <div class="row-fluid">
             <div class="span12"> <!--  see the sources -->
       </div></div></div></div>
  </body>

There will be a highlight on certain areas of the code whenever a point is being pointed out:

 Login user = loginDao.getLogin(username.trim());
        try {
         boolean enabled = true;
           boolean accountNonExpired = true;
           boolean credentialsNonExpired = true;
           boolean accountNonLocked = true;
           return new CustomerUserDetails
              (user.getUsername(),user.getEncPassword(), enabled,
               accountNonExpired,credentialsNonExpired,
               accountNonLocked,getAuthorities(user.getId(),
               loginDao.getUserRoleIds(user.getId())));
        } catch (Exception e) {
           throw new RuntimeException(e);
        }

The view names and other general links are written in this style: /ocs/login.html

Filesystem paths, and some API classes and interfaces are in strong style:    

                    /bpmn/cartevents.bpmn20.xml

Server issues, errors, and exceptions are written in screen text style.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 宁明县| 安多县| 淮滨县| 龙南县| 方山县| 安化县| 乌恰县| 新泰市| 安塞县| 鄂伦春自治旗| 体育| 蒙山县| 阜城县| 平度市| 横山县| 历史| 乡宁县| 呼和浩特市| 晋江市| 信阳市| 海安县| 翁牛特旗| 阿尔山市| 女性| 游戏| 贞丰县| 红原县| 江津市| 灵璧县| 喀喇沁旗| 麟游县| 宣汉县| 襄城县| 涞源县| 荔浦县| 阿克苏市| 兰考县| 尖扎县| 漳浦县| 宁南县| 清徐县|