先修改/etc/init.d/my.cnf 下
bind-ipaddress = 0.0.0.0(原来是127.0.0.1)
Reference for all ips use below以下命令允许所有IP访问
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION;
for particular ip use below以下命令只允许myuser用户通过youripaddres这个IP访问
" use CTRl+f to search | |
unmap <C-f> | |
" use chrome default CTRL+number to navigate to tabs | |
unmap g0 | |
unmap g^ | |
unmap g$ | |
unmap <C-p> | |
" unmap duplicate current tab (Duplicate Tab Shortcut Key is installed for this functionality) |
let &termencoding=&encoding | |
set fileencodings=utf-8,gbk,utf-16,big5 |
先修改/etc/init.d/my.cnf 下
bind-ipaddress = 0.0.0.0(原来是127.0.0.1)
Reference for all ips use below以下命令允许所有IP访问
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION;
for particular ip use below以下命令只允许myuser用户通过youripaddres这个IP访问
sudo /etc/init.d/mysql stop
sudo mysqld_safe --skip-grant-tables &
这篇文章讲得比较清楚
http://blog.csdn.net/lslxdx/article/details/7277081
但我做的只是把pom.xml里的 标签删除了...然后就好了。。。 // delete the url tag in pom.xml
HttpServletResponse response = (HttpServletResponse) res;
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers", "这里写允许的头,比如Content-Type 等");
chain.doFilter(req, res);
<project>
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
3.3
Update Java Options for Tomcat
Xmx: Max Heap size