<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</dependency>
<dependencies>
public interface PagingAndSortingRepository<T, ID extends Serializable>
extends CrudRepository<T, ID> {
Iterable<T> findAll(Sort sort);
Page<T> findAll(Pageable pageable);
}
The lang-* class specifies the language file extensions. File extensions supported by default include "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml", "xsl".
1: /* This is line 1 of my code 2: * and here's line 2 */ 3: print("I'm line number 3");
<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</dependency>
<dependencies>
一般使用普通高亮显示代码需要加类prettyprint 并调用prettyPrint()方法
但对于特殊代码 则另外添加样式 比如给java代码添加 则:class="prettyprint lang-java"
要使用spring操作文档风格样式:class="listingblock" 放代码块
不使用高亮显示
给代码添加操作顺序