Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “This behavior can be configured using the propagation attribute of the @
Transactional
annotation.”
A block of code is set as follows:
em.getTransaction().begin(); // do your changes em.getTransaction().commit();
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public int getTeamCount() { return jdbcTemplate.queryForObject("SELECT COUNT(*) FROM teams", Integer.class); }
Any command-line input or output is written as follows:
docker-compose -f docker-compose-redis.yml up
Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: “If you run the application now, you’ll see a new queue named match-events-topic.score.dlq.”
Tips or important notes
Appear like this.