
java
文章平均质量分 50
baymaxht
这个作者很懒,什么都没留下…
展开
-
eclipse出现There is no Action mapped for namespace [/] and action name [Login] associated
检查前台提交的地址是不是与struts.xml中配置的action一致web.xml中是否有以下配置<filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter&原创 2021-04-02 09:39:32 · 214 阅读 · 2 评论 -
idea在maven项目中添加jar包和依赖
<dependency> <groupId>com.bigjava</groupId> <artifactId>jar包名</artifactId> <version>版本号</version> <scope>system</scope>idea <systemPath>转载 2020-11-18 08:30:31 · 558 阅读 · 0 评论 -
git出现fatal: could not read from remote repository. please make sure you have the correct access righ
确保在$ git push -u origin master后有一步yes or noThe authenticity of host 'github.com (13.229.188.59)' can't be established.RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.Are you sure you want to continue connecting (yes/no/[fingerp原创 2020-09-28 20:20:11 · 456 阅读 · 0 评论 -
在使用类型转换方法时,注意try要加上前台传过来的数据是空的判断
/** * 类型转换 * * @param strInt * @param deafult * @return 返回deafult转换失败 */ public static int parseInt(String string, int defaultavlue) { try { return Integer.parseInt(string); } catch (Exception e) { e.printStackTrace(); } retu.原创 2020-09-15 11:20:24 · 180 阅读 · 0 评论 -
在eclipse中加载图片(javaweb)
首先新建一个javaweb工程并在,WebContent目录下(一定要在WebContent目录下)新建一个images文件夹1:接着在eclipse中找到新建的images文件夹,2:选中images文件夹右键properties,3:复制location,4:再到此电脑粘贴location中找到images文件夹,将要加载的图片放入此文件夹中接着复制Location在此电脑中粘贴并搜索将要加载的图片放在这个文件夹里,回到eclipse刷新(f5)效果演示前后前后..原创 2020-07-15 11:04:36 · 12827 阅读 · 7 评论