---
title: "模板文件是否有大小限制？"
author: "j2eetop"
date: "2015-06-09T17:56:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2015-06-09T18:01:05Z"
id: 2218287
url: "https://j2eetop.iteye.com/blog/2218287"
---

答：存在大小限制。Tiny模板引擎是将模板文件生成java文件，并动态编译成class文件执行。java每个方法的内容大小不能超过64kB，超过后会提示“The code of method renderContent(TemplateContext, Writer) is exceeding the 65535 bytes limit”的异常信息