错误全集

版权声明:未经同意窃取和转载我的内容,如果涉及到权益问题,后果自负! https://blog.csdn.net/weixin_41605937/article/details/88566542

1、0x00007FFFB973A388 处(位于 test.exe 中)有未经处理的异常: Microsoft C++ 异常:

      原因:很有可能就是在文件中的图片路径不正确。

2、在安装tensnorflow-gpu版本的出现Cannot uninstall 'Werkzeug'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

        在1、在终端输入命令:conda,输入:conda remove Werkzeug 就可以继续安装了pip3 install --upgrade tensorflow-gpu

3、var oUl = document.getElementById('ul1')//这里面的时候查找元素的时候使用getElementById //var aLi =                oUl.getElementsByTagName('li')//在使用在查找子元素的时候使用getElementsByTagNam

4 from sklearn.model_selection import train_test_split   运行出现No module named ‘sklearn.model_selection解决办法 :

后来在Anaconda Prompt里输入:conda list,发现sklearn版本是0.17.0,太低了 但是更新又出现问题。

一开始输入:conda update scikit-learn报错       最后使用:pip install -U scikit-learn 成功更新至 0.19.1

5在配置hibernate的错误是:

Caused by: org.hibernate.boot.InvalidMappingException: Could not parse mapping document: HibernateDemo03/LinkMan.hbm.xml (RESOURCE)
	at 
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 86; cvc-complex-type.3.2.2: 元素 'many-to-one' 中不允许出现属性 'calss'。]
	at 

解决方法:注意注解方面的语法发的规范化不然出错。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC 
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping> 
	<class name="HibernateDemo03.Customer" table="cst_customer" catalog="hibernate_day03">
		<!--建立主键约束-->
		<id name="cust_id" column="cust_id">
			<generator class="native"/>
		</id>
		<!-- 建立类中的普通的属性和表的字段 -->
		<property name="cust_name"></property>
		<property name="cust_source" ></property>
		<property name="cust_industry"></property>
		<property name="cust_level" ></property>
		<property name="cust_phone" ></property>
		<property name="cust_mobile" ></property>
		<set name="linkMans" cascade="save-update" inverse="true">
			<key column="lkm_cust_id"></key>
			<one-to-many class="HibernateDemo03.LinkMan"/>
		</set>
	</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC 
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
	<class name="HibernateDemo03.LinkMan" table="cst_linkman" catalog="hibernate_day03">
		<id name="lkm_id" column="lkm_id">
			<generator class="native"/>
		</id>
		<property name="lkm_name"></property>
		<property name="lkm_gender"></property>
		<property name="lkm_phone"></property>
		<property name="lkm_mobile"></property>
		<property name="lkm_email"></property>
		<property name="lkm_qq"></property>
		<property name="lkm_position"></property>
		<property name="lkm_memo"></property>
		<!-- 配置多对一的关系 :放置在一的一方的对象 -->
		<many-to-one name="customer" class="HibernateDemo03.Customer" column="lkm_cust_id"/> 
	</class>
</hibernate-mapping>

猜你喜欢

转载自blog.csdn.net/weixin_41605937/article/details/88566542
今日推荐