1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.literal_string;
17
18 import org.apache.ibatis.annotations.Insert;
19 import org.apache.ibatis.annotations.Select;
20
21 public interface Mapper {
22
23 @Select("select txt from literal_string where id = #{id}")
24 String select(Integer id);
25
26 @Insert("insert into literal_string values(#{id}, '\ta b\r\n\tc\n')")
27 int insert(Integer id);
28
29 @Insert("<script>insert into literal_string values(#{id}, '	a  b
	c
')</script>")
30 int insertScript(Integer id);
31
32 int insertXml(Integer id);
33
34 }