当我调试 tomcat 时,浏览器启动但得到 404:
HTTP 状态 404 - /
类型 状态报告
信息 /
描述 请求的资源不可用。
阿帕奇汤姆猫/7.0.75
Tomcat Catalina 日志和服务器日志都有以下错误:
在 java.library.path 上找不到基于 APR 的 Apache Tomcat Native 库,该库可在生产环境中提供最佳性能:/Users/luowensheng/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/扩展:/System/Library/Java/Extensions:/usr/lib/java:。
我搜索了一下,发现类似的帖子:
“未找到基于 APR 的 Apache Tomcat 本机库”是什么意思?
我的软件环境是:
Mac OS
IntelliJ IDEA
Run Code Online (Sandbox Code Playgroud) 在我的Navicat中,我想添加一个字段,但是我认为它的价值应该是唯一的。
但是在navicat中,我找不到选择的方式或选项,例如Not Null或Character Set。
那么,Navicat中字段的唯一选项在哪里?
现在是后退图标和后退文本:

但是,如果我想像这样导航:

我试图将背面设置为我想要的图标图像:

但这没用。
我创建了一个 Java 应用程序用户 IntelliJ IDEA,当我配置 时Dept.hbm.xml,出现错误:
无法解析包 ypd ...
但是可以看到,目录lib是:
src/main/java/com/ypd...
Run Code Online (Sandbox Code Playgroud)
我的代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/xsd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.ypd.sp.entity">
</hibernate-mapping>
Run Code Online (Sandbox Code Playgroud)
为什么我收到这个错误?
编辑
我的pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>SpringAndHibernate</artifactId>
<version>1.0-SNAPSHOT</version>
</project>
Run Code Online (Sandbox Code Playgroud)
编辑
如果在项目结构中,我将包作为源根,没有办法,为什么?
我无法在Ajax中获得PHP回声。
这是我的test01.html代码:
在我的HTML代码中,引用了jQuery,并将事件绑定到“ sub01”按钮中,我使用Ajax提供POST请求:
$(".sub01").bind("click", function() {
$.ajax({
type: "POST",
url: "cms/test01.php?action=test01",
dataType: "json",
data: {
"var_01": "var_01_value",
"var_02": "var_02_value",
},
success: function(response) {
console.log(response) // there I want to console the response from PHP.
}
})
})Run Code Online (Sandbox Code Playgroud)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div>
<form>
<input type="text" value="var_01">
<input type="text" value="var_02">
<input id="sub01" type="submit" value="click me!">
</form>
</div>Run Code Online (Sandbox Code Playgroud)
这是我的PHP test01.php代码:
在我的PHP代码中,我想回显$_POST,然后我希望AJAX代码获得响应。
<?php
echo $_POST;
Run Code Online (Sandbox Code Playgroud)
我想要代码
success: function(response) {
console.log(response) // there I want to console the response from …Run Code Online (Sandbox Code Playgroud)