精华帖 (0) :: 良好帖 (4) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2012-05-31
<plugin>
<groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.26</version> <configuration> <scanIntervalSeconds>20</scanIntervalSeconds> <stopKey>foo</stopKey> <stopPort>9999</stopPort> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>8080</port> <maxIdleTime>60000</maxIdleTime> </connector> <!-- <connector implementation="org.mortbay.jetty.security.SslSocketConnector"> <port>8443</port> <maxIdleTime>60000</maxIdleTime> <keystore>C:/Documents and Settings/zhuoying/.keystore</keystore> <password>yingzhor@163.com</password> <keyPassword>yingzhor@163.com</keyPassword> </connector> --> </connectors> </configuration> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase> <goals> <goal>run</goal> </goals> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> <daemon>true</daemon> </configuration> </execution> <execution> <id>stop-jetty</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-sslengine</artifactId> <version>6.1.26</version> </dependency> </dependencies> </plugin> 这一段配置是配置jetty启动的吧? |
|
返回顶楼 | |
发表时间:2012-05-31
最后修改:2012-05-31
没错。 这个是jetty嵌入式容器的配置信息。 你要是不用的话,你删掉就好了。
不删除也没关系。 不理睬它就好了。 |
|
返回顶楼 | |
发表时间:2012-06-01
长沙的要顶起。同在芙蓉南路上班
|
|
返回顶楼 | |
发表时间:2012-06-01
kangmint74 写道 长沙的要顶起。同在芙蓉南路上班 好滴。 长沙蛮哥谢谢你。 |
|
返回顶楼 | |
发表时间:2012-06-02
新增和修改数据时出现中文乱码问题,不知何故?程序和数据库都没变动。
|
|
返回顶楼 | |
发表时间:2012-06-03
最后修改:2012-06-03
x178335979 写道 新增和修改数据时出现中文乱码问题,不知何故?程序和数据库都没变动。
数据库是使用什么字符集的呢?我的数据库是UTF8的。 你可以按照如下方式查看。 mysql> \s -------------- mysql Ver 14.14 Distrib 5.5.21, for Win32 (x86) Connection id: 1 Current database: Current user: root@localhost SSL: Not in use Using delimiter: ; Server version: 5.5.21 MySQL Community Server (GPL) Protocol version: 10 Connection: localhost via TCP/IP Server characterset: utf8 Db characterset: utf8 Client characterset: utf8 Conn. characterset: utf8 TCP port: 3306 Uptime: 1 hour 2 min 40 sec Threads: 1 Questions: 4 Slow queries: 0 Opens: 33 Flush tables: 1 Open tabl es: 0 Queries per second avg: 0.001 -------------- 如上! 在mysql的控制台上输入"\s"命令即可查看。 这意味着整个数据库默认字符集是UTF8,在新建数据库"me"时,不特别指定字符集的话就是默认的UTF8 祝你好运。 |
|
返回顶楼 | |
发表时间:2012-06-03
呵呵,解决了,是mysql字符集的问题
|
|
返回顶楼 | |
发表时间:2012-06-03
x178335979 写道 呵呵,解决了,是mysql字符集的问题 嗯。 那就好。 |
|
返回顶楼 | |
发表时间:2012-06-03
最后修改:2012-06-03
yingzhor 写道 这个就非常奇怪了。 难道你用的tomcat不包括JSTL的包的吗?
怎么会出这样的错呢? PS: 如果是新手,强烈不推荐使用MyEclipse。 这个东西对学习非常不利。 Seven7+ 写道 用tomcat部署后访问报错
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application 我是用myeclipse8.6 tomcat 版本6.0.26 包含JSTL,偶不是新手 运用作者的eclipse导入,然后jetty方式启动成功,有点不明白楼主的开发方式。 我平时的开发环境都是用myeclipse 建立web应用,或者用eclipse建立dynamic web project ,maven管理依赖,容器用tomcat,没用过楼主的开发方式,没在楼主的me工程里看到webroot文件夹,没看到标准的web工程结构,能否讲解一下,谢谢 |
|
返回顶楼 | |
发表时间:2012-06-03
Seven7+ 写道 yingzhor 写道 这个就非常奇怪了。 难道你用的tomcat不包括JSTL的包的吗?
怎么会出这样的错呢? PS: 如果是新手,强烈不推荐使用MyEclipse。 这个东西对学习非常不利。 Seven7+ 写道 用tomcat部署后访问报错
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application 我是用myeclipse8.6 tomcat 版本6.0.26 包含JSTL,偶不是新手 运用作者的eclipse导入,然后jetty方式启动成功,有点不明白楼主的开发方式。 我平时的开发环境都是用myeclipse 建立web应用,或者用eclipse建立dynamic web project ,maven管理依赖,容器用tomcat,没用过楼主的开发方式,没在楼主的me工程里看到webroot文件夹,没看到标准的web工程结构,能否讲解一下,谢谢 你好。 webroot在%eclipse-workspace%\me\me-webapp\src\main\webapp, 请查看。 maven是一种“约定优于配置”的东东,如果你不指定的话,maven-webapp项目的webroot 就一定在这里。 如果要我详细解释目录结构的话,限于发帖字数限制恐怕很难满足你的要求。 推荐一本书《maven权威指南》(有中文版) PS: MyEclipse我也不太熟悉,不太清楚你指的"标准的web工程结构"指什么。 |
|
返回顶楼 | |