2019年6月3日

mysql—添加注释(comment)的用法

摘要: 在MySQL数据库中,字段或列的注释是用属性comment来添加。创建新表的脚本中,可在字段定义脚本中添加comment属性来添加注释。示例代码如下:create table test(id int not null default 0 comment '用户id') 如果是已经建好的表,也可以用修 阅读全文

posted @ 2019-06-03 17:22 小小酥512 阅读(5050) 评论(0) 推荐(0) 编辑

使用SpringMVC正确加载静态资源文件

摘要: 初学Springmvc的人都会碰到一个令人头痛的问题 那就是为什么我配置好web.xml中的dispatchservlet后,js,css,甚至gif都不能正常显示了 我们来看看我配置的web.xml 其中url-pattern: url-pattern有5种配置模式: (1)/xxx:完全匹配/x 阅读全文

posted @ 2019-06-03 15:30 小小酥512 阅读(7492) 评论(0) 推荐(1) 编辑

(完美解决)Maven 项目创建时遇到问题 (Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.)

摘要: 今天在创建web项目的时候,eclipse出现以下错误 解决办法:配置一下 maven阿里云镜像,亲测有效,完美解决! 配置教程: http://blog.java1234.com/blog/articles/252.html maven阿里云镜像: <mirror><id>aliyun</id>< 阅读全文

posted @ 2019-06-03 09:05 小小酥512 阅读(1394) 评论(0) 推荐(0) 编辑

导航