studio 快捷键和一些啥啥啥的

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Synnec/article/details/74502534

studio重装后,一些小的配置

改代码补全提示  搜 Class Name Completion



Ait +7  类的结构图
Ctrl + ent 提示信息
Alt +d 复制加粘贴选中文本
Alt +y 删除一行
Ctrl + Alt +L  格式化


提取方法  Ctrl + Alt + M
提取变量  Ctrl + Alt + V  当你需要改变变量声明的类型,例如使用 List 替代 ArrayList,可以按下Shift + Tab
重命名    Shift + F6
包裹代码  Ctrl + Alt + T
重写方法  Alt+Insert


提取局部变量:Ctrl+Alt+V


提取全局变量:Ctrl+Alt+F


提取方法:Shit+Alt+M

展开阅读全文
博主设置当前文章不允许评论。

啥原因

06-05

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.shen.ec.entity.CartItemrnCaused by: org.hibernate.MappingException: Association references unmapped class: com.shen.ec.entity.CartItemrn at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2503)rn at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2782)rn at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:65)rn at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1716)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1423)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1856)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)rn at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)rn at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnrnrnrn rn rn rn rn rn rnrn rn rn rn rn com/shen/ec/entity/user.hbm.xmlrn com/shen/ec/entity/order.hbm.xmlrn rn rn rn rn org.hibernate.dialect.MySQLDialectrn truern rn rn rnrnrnrn rn rn rn rn rn rn rnrnrnrn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrn不加com/shen/ec/entity/order.hbm.xml不把错 加了就报错 论坛

没有更多推荐了,返回首页