Skip to content

flyaogogo/voosky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voosky

this is test project !

配置: 1、在server.xml中配置两个目录,一个是项目工程目录,一个是图片存储虚拟路径 ,如: ... ...

	<Context path="/vooskycms" docBase="E:\EGit\gitvoosky\voosky\WebRoot" reloadable="true" />
	
	 <!-- 设置图片虚拟路径[访问时路径为/static_img] -->  
 	<Context path="/static_img" docBase="D:\vooskyimage" reloadable="false" />
  </Host>

2、在config.properties中设置服务器上的磁盘路径,此路径要对应server.xml中设置的图片虚拟路径

upload.service.disk=d://vooskyimage

3、解决中文乱码,即上传图片有中文

4、Mysql配置

[mysql]

default-character-set=utf8 ... ...

[mysqld] ... max_allowed_packet = 256M character_set_server= utf8 ...

If you are unable to stop your database, you can alternatively set the value of the max allowed packet parameter dynamically. To do so: Log in as a root user. You'll need to set the value as an integer, rather than '256M'. 256M is equivalent to 25610241024, or 268435456. mysql> SET GLOBAL max_allowed_packet=268435456; To check that this has been applied:

Relogin to your mysql client.

mysql> SELECT @@max_allowed_packet;

5、urlrewrite跳转 A、web.xml中注释UrlRewriteFilter B、urlrewrite.xml注释头部信息

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published