1.idea的破解,没有编辑器你还玩个蛋啊,说下正事idea编辑器的破解
网上很多推荐的http://idea.lanyus.com/这个网站去看看,里面有注册码,还有自己搭建的什么服务器
还有在license server输入:http://intellij.mandroid.cn/
http://idea.imsxm.com/
http://idea.iteblog.com/key.php
你们这里尝试下。下面说说的办法是:我的是最新版的2017的,前面方法都gg,我用的是
选择“License Server”;
在输入框中输入:http://idea.iteblog.com/key.php;//或者http://idea.congm.in
点击“Discover Server”;
点击“Activate”
更新2018/9/5:
https://blog.csdn.net/shengshengshiwo/article/details/79599761
在第二个下载JetbrainsCrack-3.1-release-enc.jar,操作按第一个链接
2.谈谈一些bug吧:
比如说用到@Autowired注入,结果报错
1)如果是spring框架的话,你可能没有在xml里面扫描包(其次也可能是你的xml对这个类没有相应的配置)
<context:component-scan base-package="包名" />
2)如果你用的是spring boot,说明你的applicayion.properties,或者application.yml没有写好相关配置或者格式出错
不然只能用下面这个方式进行配置,配置的东西和spring xml里面配置的<bean>是一样的
// 等价于beans
@Configuration
e.g
@Bean(name="shiroFilter")
public ShiroFilterFactoryBean shiroFilter( DefaultWebSecurityManager manager) {
ShiroFilterFactoryBean bean=new ShiroFilterFactoryBean();
bean.setSecurityManager((org.apache.shiro.mgt.SecurityManager) manager);
//配置登录的url和登录成功的url
bean.setLoginUrl("/login");
//配置访问权限
LinkedHashMap<String, String> filterChainDefinitionMap=new LinkedHashMap<>();
filterChainDefinitionMap.put("/jsp/login.jsp*", "anon"); //表示可以匿名访问
filterChainDefinitionMap.put("/loginuser", "anon");
filterChainDefinitionMap.put("/getGifCode", "anon");
filterChainDefinitionMap.put("/*", "authc");//表示需要认证才可以访问
filterChainDefinitionMap.put("/**", "authc");//表示需要认证才可以访问
filterChainDefinitionMap.put("/*.*", "authc");
bean.setFilterChainDefinitionMap(filterChainDefinitionMap);
return bean;
}
上面是shiro访问url权限设置。最后返回你要配置的那个对象,配置的东西通过set方法去配置。
3.idea左侧项目栏不见了,解决方法:点击View--->Tool windows---->project,ok了