菜鸟的一个博客站,求前辈轻喷

2015-12-28 13:36:12 +08:00
 creatorYC

前段时间自己做了一个简单的博客站,买了阿里云学生优惠价服务器,在上面搭了环境,将代码在上面跑起来了。用的是老掉牙的 java 三大框架,写的时候遇到很多问题,幸亏 v 站的前辈们悉心指导,终于将程序运行起来了。不过我感觉我懂的还是太少,我不太懂数据库的优化,也不知道该怎么优化程序,感觉写的代码太糙。现在拿上来,希望前辈们指出不足,也好给点建议,应该在哪方面更加的努力。另外希望前辈们给点建议,想学习一门脚本语言,比如 ruby 、 python 之类的,不知道有没有什么好的建议。
github 地址是 https://github.com/creatorYC/yechblog
博客站地址是 114.215.92.22
希望前辈们轻喷!我知道自己很小白。不胜感激

8027 次点击
所在节点    Java
97 条回复
creatorYC
2015-12-29 10:18:09 +08:00
@88250 嗯嗯,准备学一门脚本语音,会看看这个的
wudanyang
2015-12-29 10:25:05 +08:00
挺卡,不想备案可以试试 github 的 pages
zonghua
2015-12-29 11:07:20 +08:00
@creatorYC 你知道零零后吗
creatorYC
2015-12-29 11:47:08 +08:00
@zonghua 不知道,啥意思
zonghua
2015-12-29 12:34:31 +08:00
@creatorYC V2EX 里不少零零后的大神。
HypoChen
2015-12-29 12:56:16 +08:00
@creatorYC 学习不敢当,认识的话就 email 吧,常用 Linux ,不怎么用企鹅什么的
a2ex
2015-12-29 15:03:02 +08:00
README.md 。。才是亮点
odirus
2015-12-29 15:05:10 +08:00
楼主用的阿里主机,是不是用 IP 直接访问可以免备案?
macroideal
2015-12-29 16:29:52 +08:00
HTTP Status 500 - Index: 0, Size: 0

type Exception report

message Index: 0, Size: 0

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.util.ArrayList.rangeCheck(ArrayList.java:635)
java.util.ArrayList.get(ArrayList.java:411)
com.yech.yechblog.service.impl.UserServiceImpl.queryUserByEmail(UserServiceImpl.java:94)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
com.sun.proxy.$Proxy23.queryUserByEmail(Unknown Source)
com.yech.yechblog.action.RegistAction.resetPsw(RegistAction.java:92)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
com.yech.yechblog.interceptor.LoginInterceptor.doIntercept(LoginInterceptor.java:50)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.28 logs.

Apache Tomcat/8.0.28
creatorYC
2015-12-29 17:13:09 +08:00
@odirus 直接用 IP ,我没有备案
creatorYC
2015-12-29 17:14:46 +08:00
@macroideal 是不是服务器太弱了 -_-!
Pastsong
2015-12-29 17:15:01 +08:00
为什么我在源码里看到了 3 个 <Doctype> 3 个 <head> 。。。
creatorYC
2015-12-29 17:16:26 +08:00
@a2ex 见笑了
creatorYC
2015-12-29 17:19:38 +08:00
@Pastsong 请问是哪个页面
Pastsong
2015-12-29 17:21:31 +08:00
@creatorYC view-source:http://114.215.92.22/BlogAction_pagination
bzw875
2015-12-29 17:25:00 +08:00
能教小白怎么配置启动服务就好了
icemilk00
2015-12-29 17:49:57 +08:00
代码 commit 描述都是中文, README 干嘛要用英文写,而且第一句就表明自己的英语不行....
Liang
2015-12-29 18:31:07 +08:00
LOGO 和 NAV 不对其,好难过
creatorYC
2015-12-29 19:12:38 +08:00
@icemilk00 因为当时正好看到一篇文章,意思是“能不能要求自己用全英文写个项目简介”,大致意思是这个,不好意思,见笑了
creatorYC
2015-12-29 19:13:04 +08:00
@Liang 呃,抱歉...

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/246652

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX